10-Natural Tutorial- Lattice models

[ ]:
#This code is at:
#https://qiskit-community.github.io/qiskit-nature/tutorials/10_lattice_models.html
[1]:
from math import pi

import numpy as np
import rustworkx as rx
from qiskit_nature.second_q.hamiltonians.lattices import (
    BoundaryCondition,
    HyperCubicLattice,
    Lattice,
    LatticeDrawStyle,
    LineLattice,
    SquareLattice,
    TriangularLattice,
)
from qiskit_nature.second_q.hamiltonians import FermiHubbardModel

[2]:
num_nodes = 11
boundary_condition = BoundaryCondition.OPEN
line_lattice = LineLattice(num_nodes=num_nodes, boundary_condition=boundary_condition)
[3]:
line_lattice.draw()

../_images/JupyterNotebooks_10-Natural_Tutorial-_Lattice_models_4_0.png
[ ]: