qit.utils.vec

qit.utils.vec(rho)

Flattens a matrix into a vector.

Matrix rho is flattened columnwise into a column vector v.

Used e.g. to convert state operators to superoperator representation.