pygsti.tools.optools.dmvec_to_state#
- dmvec_to_state(dmvec, tol=1e-06)#
Compute the pure state describing the action of density matrix vector dmvec.
If dmvec represents a mixed state, ValueError is raised.
- Parameters:
dmvec (numpy array) – The vectorized density matrix, assumed to be in the standard (matrix unit) basis.
tol (float, optional) – tolerance for determining whether an eigenvalue is zero.
- Returns:
The pure state, as a column vector of shape = (N,1)
- Return type:
numpy array