Qupent Gates API Reference
This page documents the qupent gates available in the skq.gates.qupent
module. Qupents are quantum systems with 5 basis states (|0⟩, |1⟩, |2⟩, |3⟩, |4⟩) and can model spin-2 particles like the graviton.
Qupent Gate Base Class
The QupentGate
class serves as the foundation for all qupent-based quantum gates in SKQ.
skq.gates.qupent.base.QupentGate
Bases: BaseGate
Base class for Qupent gates. These are quantum systems with a basis of 5 states. |0>, |1>, |2>, |3>, |4>. Models spin-2 particles like the graviton.
Source code in src/skq/gates/qupent/base.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
is_multi_qupent()
Check if the gate involves multiple qupents.
Source code in src/skq/gates/qupent/base.py
22 23 24 |
|
num_qupents()
Return the number of qupents involved in the gate.
Source code in src/skq/gates/qupent/base.py
18 19 20 |
|
Single-Qupent Gates
Identity Gate (QupentI)
The Identity gate leaves the qupent state unchanged.
Matrix Representation:
skq.gates.qupent.single.QupentI
Bases: QupentGate
Identity gate for qupents.
Source code in src/skq/gates/qupent/single.py
6 7 8 9 10 11 |
|
X Gate (QupentX)
The X gate for a qupent performs a cyclic permutation of the basis states: |0⟩ → |1⟩ → |2⟩ → |3⟩ → |4⟩ → |0⟩.
Matrix Representation:
skq.gates.qupent.single.QupentX
Bases: QupentGate
X gate for qupents.
Source code in src/skq/gates/qupent/single.py
14 15 16 17 18 19 |
|
Z Gate (QupentZ)
The Z gate for a qupent applies different phases to each basis state, using the fifth roots of unity.
Matrix Representation:
Where \(e^{2\pi i/5}\) is the fifth root of unity.
skq.gates.qupent.single.QupentZ
Bases: QupentGate
Z gate for qupents.
Source code in src/skq/gates/qupent/single.py
22 23 24 25 26 27 28 29 30 |
|
Hadamard Gate (QupentH)
The Hadamard gate for a qupent creates a superposition of the five basis states with different phases.
Matrix Representation:
This is a generalized Fourier transform matrix for dimension 5.
skq.gates.qupent.single.QupentH
Bases: QupentGate
Hadamard gate for qupents.
Source code in src/skq/gates/qupent/single.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
T Gate (QupentT)
The T gate for a qupent applies smaller phase shifts than the Z gate.
Matrix Representation:
skq.gates.qupent.single.QupentT
Bases: QupentGate
T gate for qupents.
Source code in src/skq/gates/qupent/single.py
53 54 55 56 57 58 59 |
|