Skip to main content

StateVector<Real,Unknown,Dense,Complete>

A class representing a spin half state vector. The object stores a set of coefficients corresponding to the multiplicative coefficients in front of each computational basis state that for the basis of the state vector. It provides various optimized quantum routines and is compatible with any spin half operator.

Symbols

NameDescription
=Assignment operator for StateVector objects.
[]State vector coefficient access.

Members

NameDescription
coefficientsReturns the vector of coefficients stored by the state vector.
normalizeNormalizes the state vector to unit norm.
normalizedReturns a normalized copy of the state vector.
set_coefficientSets the coefficient of the state vector at the specified index equal to the provided value.