diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index f8b921ddec8..f4e1e63df95 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -50,7 +50,7 @@ unique representation of the object. [(#6167)](https://github.com/PennyLaneAI/pennylane/pull/6167) -* More predefined lattice shapes can now be generated. +* Predefined lattice shapes, lieb, cubic, bcc, and fcc, can now be generated. [(6237)](https://github.com/PennyLaneAI/pennylane/pull/6237) * The `to_mat` methods for `FermiWord` and `FermiSentence` now optionally return diff --git a/pennylane/spin/lattice.py b/pennylane/spin/lattice.py index eb77dfcaedd..6c5bc2c216a 100644 --- a/pennylane/spin/lattice.py +++ b/pennylane/spin/lattice.py @@ -249,8 +249,8 @@ def _generate_lattice(lattice, n_cells, boundary_condition=False, neighbour_orde ]: raise ValueError( f"Lattice shape, '{lattice}' is not supported." - f"Please set lattice to: chain, square, rectangle, honeycomb, triangle, kagome, lieb," - f"cubic, bcc or fcc." + f"Please set lattice to: 'chain', 'square', 'rectangle', 'honeycomb', 'triangle', 'kagome', 'lieb'," + f"'cubic', 'bcc' or 'fcc'." ) lattice_dict = {