Interface
oqd_trical.light_matter.interface
¶
AtomicEmulatorCircuit
¶
Bases: TypeReflectBaseModel
Class representing a quantum information experiment represented in terms of atomic operations expressed in terms of their Hamiltonians.
Attributes:
Name | Type | Description |
---|---|---|
frame |
Optional[Operator]
|
|
base |
Operator
|
Free Hamiltonian. |
sequence |
List[AtomicEmulatorGate]
|
List of gates to apply. |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/emulator.py
AtomicEmulatorGate
¶
Bases: TypeReflectBaseModel
Class representing a gate represented in terms of atomic operations expressed in terms of their Hamiltonians.
Attributes:
Name | Type | Description |
---|---|---|
hamiltonian |
Operator
|
Hamiltonian to evolve by. |
duration |
float
|
Time to evolve for. |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/emulator.py
Annihilation
¶
Coefficient
¶
Bases: TypeReflectBaseModel
Class representing a scalar coefficient for an operator.
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
CoefficientAdd
¶
Bases: Coefficient
Class representing the addition of coefficients
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
CoefficientMul
¶
Bases: Coefficient
Class representing the multiplication of coefficients
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
Creation
¶
Bases: OperatorLeaf
Class representing an annihilation operator: $$ \hat{a}^{\dagger} $$
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
Displacement
¶
Bases: OperatorLeaf
Class representing a displacement operator: $$ e^{\alpha \hat{a}^{\dagger} - \alpha^* \hat{a}} $$
Attributes:
Name | Type | Description |
---|---|---|
alpha |
Coefficient
|
Displacement angle. |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
Identity
¶
Bases: OperatorLeaf
Class representing an identity operator: $$ \hat{\mathbb{I}} $$
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
KetBra
¶
Bases: OperatorLeaf
Class representing a transition operator: $$ |i \rangle \langle j| $$
Attributes:
Name | Type | Description |
---|---|---|
ket |
int
|
End state. |
bra |
int
|
Start state. |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
Operator
¶
Bases: TypeReflectBaseModel
Class representing a quantum operator.
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
OperatorAdd
¶
Bases: Operator
Class representing the addtition of Operators
.
Attributes:
Name | Type | Description |
---|---|---|
op1 |
Operator
|
Left hand side |
op2 |
Operator
|
Right hand side |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
OperatorKron
¶
Bases: Operator
Class representing the tensor product of Operators
.
Attributes:
Name | Type | Description |
---|---|---|
op1 |
Operator
|
Left hand side |
op2 |
Operator
|
Right hand side |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
OperatorLeaf
¶
Bases: Operator
Class representing a leaf operator
Attributes:
Name | Type | Description |
---|---|---|
subsystem |
Annotated[str, AfterValidator(issubsystem)]
|
Label for the subsystem the operator acts on. |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
OperatorMul
¶
Bases: Operator
Class representing the multiplication of Operators
.
Attributes:
Name | Type | Description |
---|---|---|
op1 |
Operator
|
Left hand side |
op2 |
Operator
|
Right hand side |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
OperatorScalarMul
¶
Bases: Operator
Class representing the scalar multiplication of a Coefficient
and an Operator
.
Attributes:
Name | Type | Description |
---|---|---|
op |
Operator
|
|
coeff |
Coefficient
|
|
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
WaveCoefficient
¶
Bases: Coefficient
Class representing a wave coefficient for an operator of the following form: $$ A e^{i(\omega t + \phi)}. $$
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
ConstantCoefficient(value)
¶
emulator
¶
AtomicEmulatorCircuit
¶
Bases: TypeReflectBaseModel
Class representing a quantum information experiment represented in terms of atomic operations expressed in terms of their Hamiltonians.
Attributes:
Name | Type | Description |
---|---|---|
frame |
Optional[Operator]
|
|
base |
Operator
|
Free Hamiltonian. |
sequence |
List[AtomicEmulatorGate]
|
List of gates to apply. |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/emulator.py
AtomicEmulatorGate
¶
Bases: TypeReflectBaseModel
Class representing a gate represented in terms of atomic operations expressed in terms of their Hamiltonians.
Attributes:
Name | Type | Description |
---|---|---|
hamiltonian |
Operator
|
Hamiltonian to evolve by. |
duration |
float
|
Time to evolve for. |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/emulator.py
operator
¶
Coefficient
¶
Bases: TypeReflectBaseModel
Class representing a scalar coefficient for an operator.
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
WaveCoefficient
¶
Bases: Coefficient
Class representing a wave coefficient for an operator of the following form: $$ A e^{i(\omega t + \phi)}. $$
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
CoefficientAdd
¶
Bases: Coefficient
Class representing the addition of coefficients
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
CoefficientMul
¶
Bases: Coefficient
Class representing the multiplication of coefficients
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
Operator
¶
Bases: TypeReflectBaseModel
Class representing a quantum operator.
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
OperatorLeaf
¶
Bases: Operator
Class representing a leaf operator
Attributes:
Name | Type | Description |
---|---|---|
subsystem |
Annotated[str, AfterValidator(issubsystem)]
|
Label for the subsystem the operator acts on. |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
KetBra
¶
Bases: OperatorLeaf
Class representing a transition operator: $$ |i \rangle \langle j| $$
Attributes:
Name | Type | Description |
---|---|---|
ket |
int
|
End state. |
bra |
int
|
Start state. |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
Annihilation
¶
Creation
¶
Bases: OperatorLeaf
Class representing an annihilation operator: $$ \hat{a}^{\dagger} $$
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
Displacement
¶
Bases: OperatorLeaf
Class representing a displacement operator: $$ e^{\alpha \hat{a}^{\dagger} - \alpha^* \hat{a}} $$
Attributes:
Name | Type | Description |
---|---|---|
alpha |
Coefficient
|
Displacement angle. |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
Identity
¶
Bases: OperatorLeaf
Class representing an identity operator: $$ \hat{\mathbb{I}} $$
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
OperatorAdd
¶
Bases: Operator
Class representing the addtition of Operators
.
Attributes:
Name | Type | Description |
---|---|---|
op1 |
Operator
|
Left hand side |
op2 |
Operator
|
Right hand side |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
OperatorMul
¶
Bases: Operator
Class representing the multiplication of Operators
.
Attributes:
Name | Type | Description |
---|---|---|
op1 |
Operator
|
Left hand side |
op2 |
Operator
|
Right hand side |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
OperatorKron
¶
Bases: Operator
Class representing the tensor product of Operators
.
Attributes:
Name | Type | Description |
---|---|---|
op1 |
Operator
|
Left hand side |
op2 |
Operator
|
Right hand side |
Source code in oqd-trical/src/oqd_trical/light_matter/interface/operator.py
OperatorScalarMul
¶
Bases: Operator
Class representing the scalar multiplication of a Coefficient
and an Operator
.
Attributes:
Name | Type | Description |
---|---|---|
op |
Operator
|
|
coeff |
Coefficient
|
|