Skip to content

SparseSimulator does not support qudit operations #78

@smitsanghavi

Description

@smitsanghavi

SparseSimulator code assumes a system of qubits only and does not support general qudits.

Running the simple Circuit below gives a ValueError size 2 is different from 3.

qudit = cirq.NamedQid("a", 3)
circuit = cirq.Circuit(qudit_gates.QuditXGate(3).on(qudit), cirq.measure(qudit))
SparseSimulator().run(circuit).measurements

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions