Skip to content

Commit 51fda8a

Browse files
committed
feat(templates): Implement unified lattice module and tests
fix: Resolve mypy issues and restore show method fix: address pylint and mypy issues
1 parent 48c3726 commit 51fda8a

File tree

5 files changed

+2096
-0
lines changed

5 files changed

+2096
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ docs/source/locale/zh/LC_MESSAGES/textbook.po
3131
docs/source/locale/zh/LC_MESSAGES/whitepapertoc_cn.po
3232
docs/source/locale/zh/LC_MESSAGES/textbooktoc.po
3333
test.qasm
34+
venv/

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Change Log
22

33
## Unreleased
4+
- Add `Lattice` module (`tensorcircuit.templates.lattice`) for creating and manipulating various lattice geometries, including `SquareLattice`, `HoneycombLattice`, and `CustomizeLattice`.
45

56
## v1.2.1
67

tensorcircuit/templates/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,16 @@
77
from . import conversions
88

99
costfunctions = measurements
10+
from .lattice import AbstractLattice
11+
from .lattice import ChainLattice
12+
from .lattice import CheckerboardLattice
13+
from .lattice import CubicLattice
14+
from .lattice import CustomizeLattice
15+
from .lattice import DimerizedChainLattice
16+
from .lattice import HoneycombLattice
17+
from .lattice import KagomeLattice
18+
from .lattice import LiebLattice
19+
from .lattice import RectangularLattice
20+
from .lattice import SquareLattice
21+
from .lattice import TILattice
22+
from .lattice import TriangularLattice

0 commit comments

Comments
 (0)