From 599634a60dfb894d9457e581c4290f5a4fe3fc05 Mon Sep 17 00:00:00 2001 From: Doug Strain Date: Thu, 14 Dec 2023 19:16:30 -0800 Subject: [PATCH] formatting --- unitary/alpha/quantum_effect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unitary/alpha/quantum_effect.py b/unitary/alpha/quantum_effect.py index 632484b9..4f3e8f3d 100644 --- a/unitary/alpha/quantum_effect.py +++ b/unitary/alpha/quantum_effect.py @@ -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.