Examples

The notebooks/ folder of the GitHub repository contains several Jupyter notebooks that cover the implemented Hamiltonians and wavefunctions and demonstrate different parts of the algorithm.

Bose-Hubbard

bose_hubbard_chain.ipynb

This is the quickstart example of the start page.

Transverse-field Ising model

transverse_field_ising_chain.ipynb

This is the code discussed in Running a simulation.

  • Model: Spin-1 transverse-field Ising chain

  • Guide: JastrowSpin

  • Observables: \(\sum_i S^z_i S^z_{i+1}\), \(\sum_i S^x_i\)

Spin-1/2 XXZ chain

xxz_chain.ipynb

  • Model: SpinHalf XXZ chain

  • Guide: JastrowSpinHalf

  • Observables: \(S^z_\mathrm{tot}\), \(S^z_0\), \(S^x_\mathrm{tot}\), \(S^x_0\), the structure factors \(S^{zz}(k)\) at all allowed \(k\) and \(S^\pm\) at \(k=\pi\)

n-body model: custom classes

n_body_model.ipynb

  • Model: user-defined \(n\)-body Hamiltonian from the paper, on a 12-site chain with four-site clusters

  • Guide: user-defined guide from the paper, trained with NetKet; the GFMC run uses no guide

  • Observables: none

XXZ model on the kagome lattice

kagome_xxz.ipynb

  • Model: SpinHalf XXZ model on the kagome lattice

  • Guide: ClusterCPS on stars of David

  • Observables: none

Toric code

toric_code.ipynb

  • Model: ToricCode

  • Guide: none

  • Observables: none

Ring exchange on the pyrochlore lattice

ring_model_pyrochlore.ipynb

Download pyrochlore.h5 into the same directory as this notebook. It contains the lattice, initial state and references.

  • Model: PlaquetteModel on the pyrochlore lattice

  • Guide: none

  • Observables: fraction of flippable hexagons