quantum-compiler / quartz

The Quartz Quantum Compiler
Apache License 2.0
76 stars 19 forks source link

[simulator] Fix a bug of attaching to previous stages incorrectly #152

Closed xumingkuan closed 9 months ago

xumingkuan commented 9 months ago

When we attach single-qubit gates to previous stages, we must make sure that they are still "single-qubit" in these stages. This PR fixes the bug of attaching gates that are single-qubit in this stage but multi-qubit in some previous stages because some global qubits are local in the previous stage.