Skip to content

Commit 8e38581

Browse files
committed
Add a comment that the if condition can be removed once quantumlib#7241 is resolved.
1 parent 416bafd commit 8e38581

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cirq-core/cirq/ops/controlled_gate.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ def _decompose_with_context_(
164164
)
165165
# Prefer the subgate controlled version if available
166166
if self != controlled_sub_gate:
167-
# Prevent 2-cycle from appearing in recursive decomposition
167+
# Prevent 2-cycle from appearing in the recursive decomposition
168+
# TODO: Remove after #7241 is resolved
168169
if not isinstance(controlled_sub_gate, ControlledGate) or not isinstance(
169170
controlled_sub_gate.sub_gate, common_gates.CZPowGate
170171
):

0 commit comments

Comments
 (0)