I have a circuit composed by n
qubits, plus a single one which is an ancilla. I'm making multiple measurements on the ancilla at different stages of the circuit, while working on the n
qubits. These measurements are not really needed at all: they are just a way to collapse the state of the qubit at some point during the computation and then reuse the same qubit in a different way.
At the end of the circuit, when I'm measuring the outcome of the n
qubits, I don't want the result of this ancilla to be shown in the output of the get_counts()
function; what I want is only the output of the n
qubits. Is there any way to achieve this result?