Exports the partial trace of the density matrix to a file.
Parameters: |
|
---|
For example, when p=1, \(\rho_2 = \text{Tr}_1(\rho_{12})\), where \(\rho_{12} = |\psi(t)\rangle\langle\psi(t)|\), is exported.
Fortran interface
This function calls the Fortran function partial_trace_mat() for bin filetypes, and the function partial_trace_array() otherwise.