We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 416bafd commit 8e38581Copy full SHA for 8e38581
cirq-core/cirq/ops/controlled_gate.py
@@ -164,7 +164,8 @@ def _decompose_with_context_(
164
)
165
# Prefer the subgate controlled version if available
166
if self != controlled_sub_gate:
167
- # Prevent 2-cycle from appearing in recursive decomposition
+ # Prevent 2-cycle from appearing in the recursive decomposition
168
+ # TODO: Remove after #7241 is resolved
169
if not isinstance(controlled_sub_gate, ControlledGate) or not isinstance(
170
controlled_sub_gate.sub_gate, common_gates.CZPowGate
171
):
0 commit comments