qml.spin

Overview

This module contains functions and classes for creating and manipulating Hamiltonians for spin models.

Hamiltonian functions

emery(lattice, n_cells[, hopping, coulomb, ...])

Generates the Hamiltonian for the Emery model on a lattice.

fermi_hubbard(lattice, n_cells[, hopping, ...])

Generates the Hamiltonian for the Fermi-Hubbard model on a lattice.

haldane(lattice, n_cells[, hopping, ...])

Generates the Hamiltonian for the Haldane model on a lattice.

heisenberg(lattice, n_cells[, coupling, ...])

Generates the Hamiltonian for the Heisenberg model on a lattice.

kitaev(n_cells[, coupling, boundary_condition])

Generates the Hamiltonian for the Kitaev model on the honeycomb lattice.

transverse_ising(lattice, n_cells[, ...])

Generates the Hamiltonian for the transverse-field Ising model on a lattice.

Hamiltonian custom functions

spin_hamiltonian(lattice)

Generates a spin Hamiltonian for a custom Lattice object.

Lattice classes and functions

Lattice(n_cells, vectors[, positions, ...])

Constructs a Lattice object.

generate_lattice(lattice, n_cells[, ...])

Generates a Lattice object for a given lattice shape and number of cells.