bloqade.cirq_utils.classical_control.get_single_gate
← Module overview
function
source
functionget_single_gate¶source
bloqade.cirq_utils.classical_control.get_single_gate
def get_single_gate(stmt: scf.IfElse) -> gate.stmts.Gate | NoneReturn the sole gate in stmt’s then-body, if present.
Parameters
| Name | Type | Description |
|---|---|---|
stmt | scf.IfElse |
Returns
gate.stmts.Gate | None