# Measurement inconsistency in Qiskit

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?

• Thanks for the question. Could you post some code so that I could reproduce the problem? – James Wootton Jun 6 at 14:05
• qwc = QuantumCircuit(qnodes, qnodes2, cqnodes, cqnodes2) And then qwc.measure(qnodes, cnodes) and then qwc.draw(output="mpl") finally i get qnodes2 measured and represented in the plot as states qubits – user1319236 Jun 6 at 14:21
• Thanks for the code. However, I'm still unsure exactly how large these registers are, and how you call execute. So I've not been able to reproduce it. – James Wootton Jun 7 at 7:11
• qnodes 4 and qnodes2 just 1 execution is like : qwc = runQWC(qwc) – user1319236 Jun 11 at 0:06