Skip to content

Commit

Permalink
Update src/braket/circuits/circuit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
speller26 authored Apr 11, 2024
1 parent 3c660b2 commit 2037f62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/braket/circuits/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit 2037f62

Please sign in to comment.