Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dstrain115 committed Dec 15, 2023
1 parent cd3aca7 commit 599634a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unitary/alpha/quantum_effect.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ def effect(self, *objects: "QuantumObject"):
yield cirq.X(self.control_objects[idx].qubit)

for effect in self.then_effects:
for op in effect.effect(*objects):
yield op.controlled_by(*[q.qubit for q in self.control_objects])
for op in effect.effect(*objects):
yield op.controlled_by(*[q.qubit for q in self.control_objects])

# For anti-controls, add an X after the controlled operation
# to revert its state back to what it was.
Expand Down

0 comments on commit 599634a

Please sign in to comment.