Open saifawan2703 opened 4 weeks ago
You want to use a measurement within the with Compute
section?
A reset or measurement of a qubit within the compute section is not possible (compiler would need to automatically generate an inverse for the uncompute section which is not possible in general, i.e., unknown quantum state before reset or measurement)
Ancilla qubits can be allocated with the compute section and deallocated if they are returned to 0 deterministically. See doc
For more advanced use cases there is always the option to specify the uncompute section with a CustomUncompute
Hi everyone,
I would like to know if there is a way to reset a qubit to the |0⟩ state in ProjectQ without performing a measurement. The reason is that after measuring, I am unable to use the compute-uncompute pattern. like that
Any guidance on this would be appreciated.