evolve#
- torchspin.evolve(Sig, Det, Ham, n, dt, IncScheme=None, Mix=None)[source]#
Time-domain evolution of a density matrix.
- Parameters:
Sig (ndarray) – Initial density matrix (Hermitian), shape
(N, N).Det (ndarray) – Detection operator, shape
(N, N).Ham (ndarray | list) – Hamiltonian in MHz, shape
(N, N). For 2D experiments with different Hamiltonians per dimension, pass a list[Ham_x, Ham_y].n (int | list | tuple) – Number of time points. Scalar for 1D,
[nx, ny]for 2D.dt (float | list | tuple) – Time increment in microseconds. Scalar for 1D,
[dtx, dty]for 2D.IncScheme (list | None) –
Incrementation scheme. Default
[1].Supported 1D schemes:
[1],[1, 1],[1, -1]Supported 2D schemes:
[1, 2],[1, 1, 2],[1, -1, 2]Mix (list | None) – List of mixing propagators (square matrices). Required when
IncSchemehas more than one element. Length must equallen(IncScheme) - 1.
- Returns:
Signal – Complex time-domain signal. Shape
(n,)for 1D or(nx, ny)for 2D.- Return type: