Ququart Gates API Reference
This page documents the ququart gates available in the skq.gates.ququart
module. Ququarts are quantum systems with 4 basis states (|0⟩, |1⟩, |2⟩, |3⟩) and can model spin-3/2 particles.
Ququart Gate Base Class
The QuquartGate
class serves as the foundation for all ququart-based quantum gates in SKQ.
skq.gates.ququart.base.QuquartGate
Bases: BaseGate
Base class for Ququart gates. These are quantum systems with a basis of 4 states. |0>, |1>, |2>, |3>. Models spin-1/2 particles like electrons.
Source code in src/skq/gates/ququart/base.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
is_multi_qudit()
Check if the gate involves multiple qudits.
Source code in src/skq/gates/ququart/base.py
22 23 24 |
|
num_qudits()
Return the number of qudits involved in the gate.
Source code in src/skq/gates/ququart/base.py
18 19 20 |
|
Single-Ququart Gates
Identity Gate (QuquartI)
The Identity gate leaves the ququart state unchanged.
Matrix Representation:
skq.gates.ququart.single.QuquartI
Bases: QuquartGate
Identity gate for ququarts.
Source code in src/skq/gates/ququart/single.py
6 7 8 9 10 11 |
|
X Gate (QuquartX)
The X gate for a ququart performs a cyclic permutation of the basis states: |0⟩ → |1⟩ → |2⟩ → |3⟩ → |0⟩.
Matrix Representation:
skq.gates.ququart.single.QuquartX
Bases: QuquartGate
X gate for ququarts.
Source code in src/skq/gates/ququart/single.py
14 15 16 17 18 19 |
|
Z Gate (QuquartZ)
The Z gate for a ququart applies different phases to each basis state.
Matrix Representation:
skq.gates.ququart.single.QuquartZ
Bases: QuquartGate
Z gate for ququarts.
Source code in src/skq/gates/ququart/single.py
22 23 24 25 26 27 |
|
Hadamard Gate (QuquartH)
The Hadamard gate for a ququart creates a superposition of the four basis states with different phases.
Matrix Representation:
skq.gates.ququart.single.QuquartH
Bases: QuquartGate
Hadamard gate for ququarts.
Source code in src/skq/gates/ququart/single.py
30 31 32 33 34 35 |
|
T Gate (QuquartT)
The T gate for a ququart applies a phase shift to the |1⟩ state.
Matrix Representation:
skq.gates.ququart.single.QuquartT
Bases: QuquartGate
T gate for ququarts.
Source code in src/skq/gates/ququart/single.py
38 39 40 41 42 43 |
|