Skip to content

Commit 2e2bd32

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 2e2bd32

File tree

5 files changed

+2485
-0
lines changed

5 files changed

+2485
-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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
from . import graphs
66
from . import measurements
77
from . import conversions
8+
from . import lattice
89

910
costfunctions = measurements

0 commit comments

Comments
 (0)