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