quairkit.core.state.backend.density_matrix

The source file of the density_matrix backend.

class quairkit.core.state.backend.density_matrix.MixedState(data, sys_dim, system_seq=None)

The mixed state class.

Parameters:
data : Tensor

tensor array (in density matrix representation) for quantum mixed state(s).

sys_dim : List[int]

a list of dimensions for each system.

system_seq : List[int] | None

the system order of this state. Defaults to be from 1 to n.

Note

The data is stored in the matrix-form with shape \((-1, d, d)\)

property system_seq : list[int]

The system order of this state