Identifies a quantum object such as a qubit, qudit, resonator, etc.Child classes represent specific types of objects, such as a qubit at aparticular location on a chip or a qubit with a particular name.The main criteria that a custom qid must satisfy is comparability. Childclasses meet this criteria by implementing the
self.x. Thisensures that line qubits with the same
xare equal, and that line qubitswill be sorted ascending by
Qidimplements all equality,comparison, and hashing methods via
Initialize self. See help(type(self)) for accurate signature.
Raises an exception if
dimensionis not positive.
Returns a new qid with a different dimension.
AttributesReturns the dimension or the number of quantum levels this qid has.