Skip to content

Commit 8ce4432

Browse files
committed
Fix fishy if clause in rewrite_cu3
1 parent 6020870 commit 8ce4432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bloqade/qasm2/rewrite/native_gates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def rewrite_cu3(self, node: uop.CU3) -> result.RewriteResult:
279279
lam = self._get_const_value(node.lam)
280280
phi = self._get_const_value(node.phi)
281281

282-
if not all((theta, phi, lam)):
282+
if theta is None or lam is None or phi is None:
283283
return result.RewriteResult()
284284

285285
# cirq.ControlledGate(u3(theta, lambda phi))

0 commit comments

Comments
 (0)