The qirlib generator API contains some older design choices that don't match the new pyqir-generator API (#32), and should be reconsidered:
Instructions use string identifiers for results and qubits, but the new Python API abstracts away the string. It would be simpler and cheaper to use numeric identifiers.
QuantumRegister represents a single qubit, but ClassicalRegister represents a sequence of results, which is asymmetric. The Python API treats them symmetrically.
The qirlib generator API contains some older design choices that don't match the new pyqir-generator API (#32), and should be reconsidered:
QuantumRegister
represents a single qubit, butClassicalRegister
represents a sequence of results, which is asymmetric. The Python API treats them symmetrically.