qib.operator.heisenberg_hamiltonian.HeisenbergHamiltonian¶
- class qib.operator.heisenberg_hamiltonian.HeisenbergHamiltonian(field: Field, J: Sequence[float], h: Sequence[float])[source]¶
Bases:
AbstractOperator- Heisenberg Hamiltonian “J_1 X X + J_2 Y Y + J_3 Z Z + h_1 X + h_2 Y + h_3 Z”
interaction parameters J
longitudinal field strengths h
on a lattice.
Methods
Generate the (sparse) matrix representation of the Hamiltonian.
Represent the Hamiltonian as Pauli operator.
List of fields the Hamiltonian acts on.
Whether the Hamiltonian is Hermitian.
Whether the Hamiltonian is unitary.
Attributes
Number of underlying lattice sites.