quspin.operators.ishamiltonian

quspin.operators.ishamiltonian(obj)[source]

Checks if instance is object of hamiltonian class.

Parameters:
obj

Arbitraty python object.

Returns:
bool

Can be either of the following:

  • True: obj is an instance of hamiltonian class.

  • False: obj is NOT an instance of hamiltonian class.