Identifies a qubit. Child classes implement specific types of qubits.The main criteria that a “qubit id” 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
QubitIdimplements all equality,comparison, and hashing methods via
Initialize self. See help(type(self)) for accurate signature.