qalgebra.core package¶
The fundamental object hiearchies that constitute QNET’s various algebras
Submodules:
- qalgebra.core.abstract_algebra module
- qalgebra.core.abstract_quantum_algebra module
- qalgebra.core.algebraic_properties module
- qalgebra.core.exceptions module
- qalgebra.core.hilbert_space_algebra module
- qalgebra.core.indexed_operations module
- qalgebra.core.matrix_algebra module
- qalgebra.core.operator_algebra module
- qalgebra.core.scalar_algebra module
- qalgebra.core.state_algebra module
- qalgebra.core.super_operator_algebra module
Summary¶
__all__
Exceptions:
Base class for all algebraic errors. |
|
Base class for all algebraic exceptions. |
|
Raised if the basis or a Hilbert space dimension is unavailable. |
|
Raised when a rule cannot further simplify an expression. |
|
Matrix cannot be diagonalized analytically. |
|
Raised when expanding a sum into an infinite number of terms. |
|
Raised when entries of |
|
Raised when a |
|
Raised when objects fail to be in separate Hilbert spaces. |
|
Raised when objects fail to be have overlapping Hilbert spaces. |
|
Raised when objects fail to be in the same Hilbert space. |
__all__
Classes:
Symbolic Adjoint of an operator |
|
Local basis state, identified by index or label |
|
The associated dual/adjoint state for any ket |
|
The symbolic inner product between two states |
|
Local coherent state, labeled by a complex amplitude \(\alpha\). |
|
Commutator of two operators |
|
Base class for all QAlgebra Expressions. |
|
Base class for Hilbert spaces |
|
Base class for indexed sums. |
|
Outer product of two states |
|
Indexed sum over Kets. |
|
Sum of states. |
|
Symbolic state. |
|
A state on a |
|
Base class for “known” operators on a |
|
Level flip operator between two levels of a |
|
Hilbert space for a single degree of freedom. |
|
Matrix of Expressions. |
|
Projection operator onto the nullspace of its operand. |
|
Base class for “operations” |
|
Base class for all quantum operators. |
|
Symbolic partial derivative of an operator |
|
Indexed sum over operators |
|
Sum of Operators |
|
An operator plus or minus its complex conjugate. |
|
Symbolic operator |
|
Product of operators |
|
Product of an operator and a state. |
|
(Partial) trace of an operator |
|
Tensor product of local Hilbert spaces. |
|
Unevaluated pseudo-inverse \(\Op{X}^+\) of an operator \(\Op{X}\). |
|
Base class for adjoints of quantum expressions |
|
Symbolic partial derivative. |
|
Base class for expressions associated with a Hilbert space |
|
Base class for indexed sums of quantum expressions. |
|
Base class for operations on quantum expression |
|
General implementation of addition of quantum expressions |
|
Symbolic element of an algebra. |
|
General implementation of product of quantum expressions |
|
Linear post-multiplication operator. |
|
Linear pre-multiplication operator |
|
Base class for Scalars |
|
Symbolic partial derivative of a scalar |
|
Base class for scalars with non-scalar arguments |
|
Indexed sum over scalars. |
|
Sum of scalars |
|
A scalar raised to a power. |
|
Product of scalars |
|
Product of a |
|
Product of a |
|
Product of a |
|
Wrapper around a numeric or symbolic value |
|
Base class for operations on a single quantum expression |
|
Base class for states in a Hilbert space |
|
Symbolic partial derivative of a state |
|
Adjoint of a super-operator. |
|
Base class for super-operators |
|
Symbolic partial derivative of a super-operator |
|
A sum of super-operators |
|
Symbolic super-operator |
|
Product of super-operators |
|
Application of a super-operator to an operator. |
|
A tensor product of kets. |
__all__
Functions:
Kronecker delta symbol. |
|
A projector onto a specific level of a |
|
Instantiator for an arbitrary indexed sum. |
|
Return the adjoint of an obj. |
|
If |
|
Generate the operator matrix with quadrants |
|
Commutator of A and B |
|
Simplifies OperatorTrace expressions over tensor-product spaces by turning it into iterated partial traces. |
|
Generalizes the diagonal matrix creation capabilities of numpy.diag to |
|
Factor out coefficients of all factors. |
|
Factor ls out of op for easy tracing. |
|
Create a dictionary with all Operator terms of the expression (understood as a sum) as keys and their coefficients as values. |
|
Generalizes numpy.hstack to |
|
Generate the N-dimensional identity matrix. |
|
Return the super-operator Lindblad term of the Lindblad operator C |
|
Return the Liouvillian super-operator associated with H and Ls |
|
Try to rewrite expr using |
|
Square root of a |
|
Substitute symbols or (sub-)expressions with the given replacements. |
|
Instantiate while applying automatic simplifications. |
|
Generalizes numpy.vstack to |
|
Generalizes |
__all__
Data:
The ‘full space’, i.e. |
|
|
|
|
|
Neutral element for product of super-operators |
|
The neutral element with respect to scalar multiplication |
|
TrivialKet constant (singleton) object. |
|
The ‘nullspace’, i.e. |
|
The neutral element with respect to scalar addition |
|
ZeroKet constant (singleton) object for the null-state. |
|
|
|
Neutral element for sum of super-operators |