Beginner Tutorial
Middle Level Tutorial
Advanced Tutorial
Case Library
API
Paper with Code
RELEASE NOTES
Installation Guide
Control-X gate.
More usage, please see XGate.
XGate
Construct cpp obj.
Define which qubit the gate act on and the control qubit.
Note
In this framework, the qubit that the gate act on is specified first, even for control gate, e.g. CNOT, the second arg is control qubits.
obj_qubits (int, list[int]) – Specific which qubits the gate act on.
ctrl_qubits (int, list[int]) – Specific the control qubits. Default: None.
None
Gate, Return a new gate.