Symbol | Name | Usage | Description |
---|---|---|---|
![]() | NOT (also X) | qc.not(t) | Logical bitwise NOT |
![]() | CNOT | qc.cnot(t,c) | Controlled NOT: if (c) then NOT(t) |
![]() | CCNOT (Toffoli) | qc.cnot(t,c1|c2) | if (c1 AND c2) then NOT(t) |
![]() | HAD (Hadamard) | qc.had(t) | Hadamard gate |
![]() | PHASE | qc.phase(angle,c) | Relative phase rotation |
![]() | Z | qc.phase(180,c) | Relative phase rotation by 180 ° |
![]() | S | qc.phase(90,c) | Relative phase rotation by 90 ° |
![]() | T | qc.phase(45,c) | Relative phase rotation by 45 ° |
![]() | CPHASE | qc.cphase(angle,c1|c2) | Conditional phase rotation |
![]() | CZ | qc.cphase(180,c1|c2) | Conditional phase rotation by 180 ° |
![]() | READ | val = qc.read(t) | Read qubits, returning digital data |
![]() | WRITE | qc.write(t,val) | Write conventional data to qubits |
![]() | ROOTNOT | qc.rootnot(t) | Root-of-NOT operation |
![]() | SWAP (EXCHANGE) | qc.exchange(t1|t2) | Exchange two qubits |
![]() | CSWAP | qc.exchange(t1|t2, c) | Conditional exchange: if (c) then SWAP(t1,t2) |