quara.objects.elemental_system module

class ElementalSystem(name, basis)[source]

Bases: object

Class 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 name must be int.

property basis: quara.objects.matrix_basis.SparseMatrixBasis
comp_basis(mode='row_major')[source]
Parameters

mode (str) –

Return type

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 name can be specified by a user, the system ID is assigned automatically. Now, system_id is the same as the result of passing an instance to id().

Return type

int