StateSystem

class StateSystem(system)[source]

Bases: Mapping[StateVector, StateVector]

A system of input and output states.

__init__(system)[source]

Construct a state system.

Attributes

dim

The vector dimension for this state.

num_qudits

The number of qudits in the state.

radixes

The number of orthogonal states for each qudit.

Methods

get(k[,d])

is_qubit_only()

Return true if this unitary can only act on qubits.

is_qutrit_only()

Return true if this unitary can only act on qutrits.

is_state_system(V)

Check if V is a system of pure states.

items()

keys()

values()