Quantum-Many-Body / QuantumLattices.jl

Julia package for the construction of quantum lattice systems.
https://quantum-many-body.github.io/QuantumLattices.jl
Other
108 stars 9 forks source link

Plot of Lattice #28

Closed Yaraslaut closed 1 year ago

Yaraslaut commented 1 year ago

It seams that at the moment it is impossible to plot Lattice, is there any plans to add this to the package ?

waltergu commented 1 year ago

It seams that at the moment it is impossible to plot Lattice, is there any plans to add this to the package ?

Sorry for the late reply. In fact, it is possible to plot a lattice by using the plot function exported by Plots.jl at present: plot(lattice::Lattice, neighbors::Int). You need to specify an extra positional parameter neighbor to indicate the orders of nearest neighbors to be plotted.