Measurement and simulation: shots, probabilities and mid-circuit readouts

The converter moves measurements to the end and treats unmeasured circuits in a specific way. Here is what that means for results.

7 min read · reviewed December 2026

Shots versus exact chances

Real devices and shot-based simulators give a finite sample, so counts wobble. A state-vector simulator can return exact probabilities. The lab shows exact chances. The Qiskit and Cirq code samples 1000 shots, so expect small differences. PennyLane’s default returns exact probabilities.

Where measurements go

The Circuit Builder lets you place a measurement in the middle of a circuit, but its simulator measures all marked qubits at the end. The converter does the same and puts all measurements after the last gate, with a comment saying so. For circuits that do not reuse a qubit after measuring it, this changes nothing.

Circuits with no measurement

If a circuit has no measurement gate, the converter measures every qubit, so the code produces output when run. The lab’s probability panel shows the same thing.

Initial states

The Circuit Builder lets you start a qubit in |1⟩. The converter writes that as an X gate at the start, which is equivalent and works in every target.

Circuits that measure a qubit and then keep using it, or classical control driven by results, are outside what the converter and the importer handle.

Try it

Questions

Why do my Qiskit counts not match the lab exactly?

Shot noise. Increase the number of shots, or compare to the exact probabilities.

Can I run a circuit with a mid-circuit measurement?

Not through this converter. Real frameworks support it, but the lab’s simulator does not.

Does the converter add noise?

No. All code describes an ideal circuit.

Read next

Sources and further reading

Check the original sources for exact citations.