StateVector<Complex,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
| Name | Description |
|---|
= | Assignment operator for StateVector objects. |
[] | State vector coefficient access. |
Members
| Name | Description |
|---|
| coefficients | Returns the vector of coefficients stored by the state vector. |
| normalize | Normalizes the state vector to unit norm. |
| normalized | Returns a normalized copy of the state vector. |
| set_coefficient | Sets the coefficient of the state vector at the specified index equal to the provided value. |