diff --git a/src/braket/circuits/circuit.py b/src/braket/circuits/circuit.py index 2cf1a29b4..bf04de41d 100644 --- a/src/braket/circuits/circuit.py +++ b/src/braket/circuits/circuit.py @@ -451,7 +451,8 @@ def _check_if_qubit_measured( if ( # check if there is a measure instruction on the targeted qubit(s) measure_on_target_mapping - or any(tar in self._measure_targets for tar in QubitSet(target) + QubitSet(instruction.target)) + or any(tar in self._measure_targets for tar in QubitSet(target)) + or any(tar in self._measure_targets for tar in QubitSet(instruction.target)) ): raise ValueError("cannot apply instruction to measured qubits.")