I am using Qiskit in an algorithm. In the end, I am measuring exactly a register of 4 qubits but the histograms show states with 5 qubits.
This is the code I used:
qwc = QuantumCircuit(qnodes, qnodes2, cqnodes, cqnodes2)
qwc.measure(qnodes, cnodes)
qwc.draw(output="mpl")
and finally qnodes2
is measured and represented in the plot as states qubits?
Any ideas what the problem might be?
qwc = QuantumCircuit(qnodes, qnodes2, cqnodes, cqnodes2)
And thenqwc.measure(qnodes, cnodes)
and thenqwc.draw(output="mpl")
finally i get qnodes2 measured and represented in the plot as states qubits $\endgroup$qnodes
4 andqnodes2
just 1 execution is like :qwc = runQWC(qwc)
$\endgroup$cnodes
but the circuit includescqnodes
andcqnodes2
... $\endgroup$