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")
qnodes2 is measured and represented in the plot as states qubits?
Any ideas what the problem might be?