quara.objects.elemental_system module
- class ElementalSystem(name, basis)[source]
Bases:
objectClass for representing an individual quantum system.
Constructor
- Parameters
name (int) – The name of quantum system.
basis (MatrixBasis) – The basis of quantum system.
- Raises
TypeError – Type of
namemust be int.
- property basis: quara.objects.matrix_basis.SparseMatrixBasis
- property dim: int
Property to get the dimension of the basis.
- Returns
The dimension of the basis.
- Return type
int
- property is_hermitian: bool
- property is_orthonormal_hermitian_0thprop_identity: bool
Property to get whether basis is orthonormal, hermitian and 0th prop identity.
- Returns
whether basis is orthonormal, hermitian and 0th prop I.
- Return type
bool
- property name: int
Property to get the name of a quantum system.
- Returns
The name of a quantum system.
- Return type
int
- property system_id: int
Property to get the system ID of a quantum system.
- Returns
The system ID of a quantum system. Although
namecan be specified by a user, the system ID is assigned automatically. Now,system_idis the same as the result of passing an instance toid().- Return type
int