From a70d2bcf595a1ba4d8fe04b99c54c86818e88be9 Mon Sep 17 00:00:00 2001 From: Austin Huang <65315367+austingmhuang@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:33:14 -0400 Subject: [PATCH] Update pennylane/spin/spin_hamiltonian.py Co-authored-by: Utkarsh --- pennylane/spin/spin_hamiltonian.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pennylane/spin/spin_hamiltonian.py b/pennylane/spin/spin_hamiltonian.py index f9009dec3f4..2d4cfaee273 100644 --- a/pennylane/spin/spin_hamiltonian.py +++ b/pennylane/spin/spin_hamiltonian.py @@ -707,7 +707,7 @@ def spin_hamiltonian(lattice): .. code-block:: python - lattice = qml.spin.Lattice( + >>> lattice = qml.spin.Lattice( n_cells=[2, 2], vectors=[[1, 0], [0, 1]], positions=[[0, 0], [1, 5]],