seemps.hamiltonians.NNHamiltonian.to_matrix#

method

NNHamiltonian.to_matrix(t=0.0)[source]#

Compute the sparse matrix for this Hamiltonian at time t.

Parameters:
tfloat, default = 0.0

Time at which the matrix is computed

Returns:
Operator

Matrix in either dense or sparse representation.