two_qubit_gate
TwoQubitGate
Bases: Gate
Source code in opensquirrel/ir/two_qubit_gate.py
accept
Accepts visitor and processes this IR node.
is_identity
Checks if the two-qubit gate is an identity gate.
Returns:
| Type | Description |
|---|---|
bool
|
True if the two-qubit gate is an identity gate, False otherwise. |