sigeq#

torchspin.sigeq(Ham, Temperature, *, polarization=False)[source]#

Compute thermal equilibrium density matrix.

Parameters:
  • Ham (Tensor) – Hamiltonian matrix (in MHz), shape (N, N).

  • Temperature (float) – Temperature in Kelvin. Must be > 0.

  • polarization (bool) – If True, return only the polarization part (deviation from the maximally mixed state I/N).

Returns:

sigma – Hermitian density matrix, shape (N, N). If polarization=True, trace is zero.

Return type:

Tensor