controlled_gate
ControlledGateSemantic
Bases: GateSemantic
Source code in opensquirrel/ir/semantics/controlled_gate.py
accept
is_identity
Checks if the controlled gate semantic represents an identity operation.
Returns:
| Type | Description |
|---|---|
bool
|
True if the controlled gate semantic represents an identity operation, False otherwise. |