Skip to content

Commit 6c19206

Browse files
update readme
1 parent 90a431b commit 6c19206

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@ energy = tc.templates.measurements.operator_expectation(c, h)
100100
# -6
101101
```
102102

103+
- Large-scale simulation with tensor network engine
104+
105+
```python
106+
# tc.set_contractor("cotengra-30-10")
107+
n=500
108+
c = tc.Circuit(n)
109+
c.h(0)
110+
c.cx(range(n-1), range(1, n))
111+
c.expectation_ps(z=[0, n-1], reuse=False)
112+
```
113+
103114
</details>
104115

105116
## Install

0 commit comments

Comments
 (0)