Closed tanujkhattar closed 4 months ago
All calls to context.qubit_manager.qalloc should be followed by calls to context.qubit_manager.qfree. Many arithmetic gate decompositions do not free the allocated qubits. This is bad and should be fixed.
context.qubit_manager.qalloc
context.qubit_manager.qfree
qfree
All calls to
context.qubit_manager.qalloc
should be followed by calls tocontext.qubit_manager.qfree
. Many arithmetic gate decompositions do not free the allocated qubits. This is bad and should be fixed.qfree
call in entire comparison file - https://github.com/quantumlib/Qualtran/blob/main/qualtran/bloqs/arithmetic/comparison.py