I am just wondering in what way cirq.Qid class generalizes qudits. From cirq.Qid documentation we read that it

Identifies a quantum object such as a qubit, qudit, resonator, etc.

I am not sure what this resonator means and if it is somehow connected to other qudits in the system.

Could anyone clarify it?


Well, originally the idea was that we didn't want to exclude things like continuous quantum systems, and ancillary systems being used as control surfaces, and concepts like "a place where an ion might be" as opposed to the ion itself. So we went with a very generic "identifier for quantum-associated thing" name (qid).

At some point Qid gained a dimension method that returns an integer telling you how many quantum levels there are... so it really basically is a qudit now.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.