Known Issues
Classically Controlled Gates (Mid-Circuit Measurement With Feedback)
Status: workaround available; fix scheduled with the vendor (IQM). Last updated: 12/11/26
What the Feature Is
VLQ supports classically controlled gates (also called real-time feedback or feed-forward):
a qubit is measured in the middle of a circuit (mid-circuit measurement),
and a later gate is applied only if the measurement result is 1.
In Qiskit this is written with if_test, and on IQM hardware it is compiled to the cc_prx gate:
qc.measure(0, m[0]) # mid-circuit measurement -> classical bit m
with qc.if_test((m[0], 1)): # classical condition
qc.x(1) # applied only when m = 1Typical uses: active qubit reset, error-correction protocols, teleportation.
Symptom
Such circuits are accepted and run without any error message, but the conditional gate does not follow the current measurement. The results look random (about 50%) instead of following the measured value. Simple circuits without mid-circuit measurement are not affected.
Cause
Each run of a circuit is called a shot; a job repeats the circuit for many shots.
The measurement result needs a short time (a few hundred nanoseconds) to travel
from the readout electronics to the electronics that drive the target qubit.
On VLQ, the system currently waits slightly too short (a timing setting, control_delays),
so the conditional gate is decided before the new result arrives and uses the result from the previous shot.
This is a configuration issue in the vendor’s control software, not a user error, and the qubits themselves work correctly.
Workaround
Add a short delay after the mid-circuit measurement, before the conditional gate, so that the result has time to arrive.
Case 1: conditional gate on the measured qubit itself (e.g. active reset)
qc.measure(0, m[0])
qc.delay(0.5, 0, unit="us") # wait 0.5 µs on the measured qubit
with qc.if_test((m[0], 1)):
qc.x(0)Verified on QB1: the qubit ends in 0 on 97.5% of shots (about 50% without the delay).
Case 2: conditional gate on another qubit
qc.measure(0, m[0])
qc.barrier() # make the delay start after the measurement
qc.delay(0.5, 1, unit="us") # wait 0.5 µs on the target qubit
with qc.if_test((m[0], 1)):
qc.x(1)Verified on QB1 → QB2: correct behaviour from 0.4 µs of delay.
Put the delay on the right qubit
The delay must act on the qubit that receives the conditional gate.
In a single-qubit circuit, qc.delay(..., 1, ...) refers to a qubit that does not exist;
in a multi-qubit circuit it may delay a qubit that is not involved.
Use a barrier when the target is another qubit
Without qc.barrier(), the compiler may start the delay at the beginning of the circuit,
in parallel with the measurement, so most of it has no effect.
Without a barrier, about 1.5–2 µs of delay is needed instead of 0.5 µs.
Cost of the delay
While waiting, qubits in superposition slowly lose their quantum information (decoherence, characterised by the time T2, about 11 µs on VLQ). A 0.5 µs delay costs roughly 4% coherence for such qubits. This is fine for testing; for production results, prefer waiting for the fix.
How to Check That Feedback Works
Run the circuit below. If feedback works, the two measured bits are equal (results 0 0 and 1 1, about 50% each).
If they look random, the issue is present.
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
q = QuantumRegister(2); m = ClassicalRegister(1, "m"); f = ClassicalRegister(1, "f")
qc = QuantumCircuit(q, m, f)
qc.h(q[0]) # put qubit 0 in superposition (random 0/1)
qc.measure(q[0], m[0])
with qc.if_test((m[0], 1)):
qc.x(q[1]) # copy the result to qubit 1
qc.measure(q[1], f[0])This section will be updated when the fix is applied.
Repeated MOVE Operations on the Same Qubit (Affects CSWAP and Other Multi-Qubit Circuits)
Status: confirmed and reproduced on VLQ; workaround available; fixed in a newer version of the vendor’s (IQM) software, planned to be installed on VLQ in December 2026. Last updated: 26/11/26
What the Feature Is
VLQ has a star topology: the qubits are not connected to each other directly,
but through a central computational resonator (COMPR1).
To make two qubits interact, the compiler moves a qubit’s state into the resonator with a MOVE gate,
applies the two-qubit gate, and moves the state back with a second MOVE.
We call such a pair of MOVEs with operations in between a MOVE sandwich.
You do not write MOVE gates yourself: transpile_to_IQM (or transpile with the IQM backend) inserts them automatically.
While a qubit’s state sits in the resonator, it picks up a phase that depends on the frequency difference between the qubit and the resonator. The control software corrects this phase automatically.
Symptom
Circuits run without any error message, but some results are wrong in a systematic way:
- one qubit returns the wrong value much more often than its readout and gate fidelities would suggest (in reported cases, more than 50% of shots);
- the error depends on which physical qubit is used: remapping the same logical qubit to another physical qubit changes or removes it;
- the error largely disappears in self-inverting circuits (a circuit followed by its exact inverse), so it is easy to miss in simple checks.
Gates built from several two-qubit operations, such as the controlled-SWAP (CSWAP, Fredkin) gate, are particularly affected, because the compiler places several MOVE sandwiches on the same qubit.
Cause
When a circuit contains two or more MOVE sandwiches on the same qubit–resonator pair, the phase correction calculated for the first sandwich is overwritten by the one calculated for the second. If the time between the two MOVEs differs between the sandwiches, the first sandwich receives the wrong correction, and the qubit is left with a phase error. This is a bug in the vendor’s control software, not a user error and not a hardware fault. It is fixed in a newer IQM software version, which will be installed on VLQ; this entry will be updated then.
Workaround
Avoid more than one MOVE sandwich on the same qubit in a circuit.
When the repeated sandwiches come from different gates,
this can often be enforced by adding qc.barrier() at suitable points in the circuit,
at the cost of extra idle time (and therefore some additional decoherence).
This does not always work, so always check the transpiled circuit with the MOVE count below.
Where possible, the vendor recommends running affected circuits after the software upgrade.
To see whether your circuit is affected, transpile it and count the MOVE gates on each qubit. More than two MOVEs on the same qubit means more than one MOVE sandwich:
from collections import Counter
from iqm.qiskit_iqm import transpile_to_IQM
tqc = transpile_to_IQM(qc, backend)
moves = Counter(
tqc.find_bit(q).index
for inst in tqc.data if inst.operation.name == "move"
for q in inst.qubits
)
print(moves) # per circuit index; the resonator appears with the largest countIgnore the resonator entry. A qubit with more than 2 MOVEs (more than one MOVE sandwich) may be exposed: the error occurs when the time between the two MOVEs differs between its sandwiches. A qubit with at most 2 MOVEs is not affected.
Example output for a 3-qubit circuit with one CSWAP gate:
QB1: 4 MOVEs <- possibly exposed (two MOVE sandwiches)
QB2: 2 MOVEs
QB3: 4 MOVEs <- possibly exposed
COMPR1: 10 MOVEs <- resonator, ignoreA 3-qubit GHZ circuit, by contrast, gives only 2 MOVEs on one qubit and is not affected.
Barriers do not help for a single CSWAP gate
A barrier only separates parts of your circuit; it cannot change how the compiler breaks one gate into MOVE and CZ operations. Placing barriers before and after a CSWAP gate does not reduce the number of MOVEs (in our test it increased them on one qubit from 4 to 6). Barriers help when the repeated MOVE sandwiches come from different gates in your circuit. For circuits that rely on CSWAP, there is no simple workaround, and the vendor recommends waiting for the software upgrade.
Cost of the workaround
Barriers make some qubits wait longer. Check that your circuit still fits well within the coherence times (T1, T2) of the qubits you use.
How to Check That It Works
Transpile your modified circuit again and confirm that no qubit has more than 2 MOVE gates (see the snippet above). After the software upgrade, affected circuits should give results consistent with the normal error levels of the qubits used. Then compare the measured results with a noiseless simulation of the same circuit: with the workaround, the remaining deviations should match the normal error levels of the qubits used.
This section will be updated when the fix is installed on VLQ.
Glossary
| Term | Meaning |
|---|---|
| Qubit | The basic unit of a quantum computer; VLQ has 24 (QB1–QB24). |
| Shot | One run of a circuit; a job repeats it many times to collect statistics. |
| Mid-circuit measurement | Measuring a qubit in the middle of a circuit, not only at the end. |
| Classically controlled gate / feedback / feed-forward | A gate applied only if a previous measurement gave a certain result. |
cc_prx | IQM’s name for a classically controlled single-qubit rotation (e.g. an X gate). |
| Delay | An instruction that makes a qubit wait for a given time. |
| Barrier | A scheduling instruction: qubits must finish everything before it before anything after it starts. |
| Superposition | A qubit state that is a mix of 0 and 1 until measured. |
| Decoherence / T2 | The gradual loss of a qubit’s quantum information over time; T2 is its characteristic time. |

