qir-alliance / qat

QIR compiler tools and optimization passes for targeting QIR to different hardware backends
https://qir-alliance.github.io/qat/
MIT License
26 stars 14 forks source link

Create pass to trim qubits that were never "used" #120

Open troelsfr opened 1 year ago

troelsfr commented 1 year ago

Qubits that are allocated and operated on, but never measured should be trimmed.

Consider cases where they are used in circuits where other qubits are measured such as CNOT