toDensity

toDensity(psiMat)

Converts a pure state into a density matrix.

Parameters:
  • psiMat : ndarray

    Pure state to be converted.

Returns:
  • psiMat : ndarray

    rhog: ndarray Density Matrix of the input state.


Contact

In case you have any further questions about the Python code, you should direct them to Scott Turro or Joey Shallat.