Skip to content

Commit cbaaa46

Browse files
make consistent example names
1 parent 4c01a56 commit cbaaa46

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

.github/workflows/ci.yml

-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ jobs:
4545
python mcnoise_boost.py
4646
python quantumng.py
4747
python universal_lr.py
48-
# python GHZ_DQAS.py
49-
# python QEM_DQAS.py
5048
- name: setup build
5149
run: |
5250
python3 setup.py build

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ For more information and introductions, please refer to helpful [example scripts
3737

3838
The following are some minimal demos.
3939

40-
Circuit manipulation:
40+
- Circuit manipulation:
4141

4242
```python
4343
import tensorcircuit as tc
@@ -50,15 +50,15 @@ print(c.expectation_ps(z=[0, 1]))
5050
print(c.sample())
5151
```
5252

53-
Runtime behavior customization:
53+
- Runtime behavior customization:
5454

5555
```python
5656
tc.set_backend("tensorflow")
5757
tc.set_dtype("complex128")
5858
tc.set_contractor("greedy")
5959
```
6060

61-
Automatic differentiations with jit:
61+
- Automatic differentiations with jit:
6262

6363
```python
6464
def forward(theta):

examples/bp_validation.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Compute the circuit gradient with single qubit random Haar averaged to
3+
demonstrate the gradient vanishing, aka, barren plateau.
4+
"""
15
import numpy as np
26
from tqdm import tqdm
37
import tensorcircuit as tc

examples/GHZ_DQAS.py examples/ghz_dqas.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
DQAS for GHZ state preparation circuit, deprecated DQAS implementation
3+
"""
14
import sys
25

36
sys.path.insert(0, "../")

examples/hchainhamiltonian.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Get molecule qubit format Hamiltonian from open fermion.
2+
Get molecule qubit format Hamiltonian from openfermion.
33
"""
44

55
import time

examples/QEM_DQAS.py examples/qem_dqas.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
DQAS for QFT QEM circuit design, deprecated DQAS implementation
3+
"""
14
import sys
25

36
sys.path.insert(0, "../")

0 commit comments

Comments
 (0)