Skip to main content

reduced_density_matrix

Overloads

NameDescription
reduced_density_matrix(const RealMatrix psi, integer sites) -> RealMatrixCalculates the reduced density matrix for a subsystem using a linear cut. Returns the reduced density matrix for the sites to the left of the linear cut.
reduced_density_matrix(const RealMatrix psi, List<integer> sites) -> RealMatrixCalculates the reduced density matrix for a subsystem using arbitrary subsystem cuts.
reduced_density_matrix(const ComplexMatrix psi, integer sites) -> ComplexMatrixCalculates the reduced density matrix for a subsystem using a linear cut. Returns the reduced density matrix for the sites to the left of the linear cut.
reduced_density_matrix(const ComplexMatrix psi, List<integer> sites) -> ComplexMatrixCalculates the reduced density matrix for a subsystem using arbitrary subsystem cuts.

reduced_density_matrix(const RealMatrix psi, integer sites) -> RealMatrix

Calculates the reduced density matrix for a subsystem using a linear cut. Returns the reduced density matrix for the sites to the left of the linear cut.

Parameters

  • psi: Real state vector.
  • sites: Number of sites to include in the subsystem. The rest of the sites to the right of the cut are traced out.

reduced_density_matrix(const RealMatrix psi, List<integer> sites) -> RealMatrix

Calculates the reduced density matrix for a subsystem using arbitrary subsystem cuts.

Parameters

  • psi: Real state vector.
  • sites: List of site indices for subsystem. The excluded sites are traced out.

reduced_density_matrix(const ComplexMatrix psi, integer sites) -> ComplexMatrix

Calculates the reduced density matrix for a subsystem using a linear cut. Returns the reduced density matrix for the sites to the left of the linear cut.

Parameters

  • psi: Complex state vector.
  • sites: Number of sites to include in the subsystem. The rest of the sites to the right of the cut are traced out.

reduced_density_matrix(const ComplexMatrix psi, List<integer> sites) -> ComplexMatrix

Calculates the reduced density matrix for a subsystem using arbitrary subsystem cuts.

Parameters

  • psi: Complex state vector.
  • sites: List of site indices for subsystem. The excluded sites are traced out.