pub fn partial_trace_density( density: &[Complex64], subsystem_dimension: usize, environment_dimension: usize, ) -> Result<Vec<Complex64>>
Reduced density matrix of the first factor for a row-major mixed state.