Skip to content

Commit 7b170ec

Browse files
2026 black
1 parent 89a4f3c commit 7b170ec

32 files changed

Lines changed: 26 additions & 52 deletions

benchmarks/scripts/benchmark.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import os
33
import utils
44

5-
65
if __name__ == "__main__":
76
_uuid = str(uuid.uuid4())
87
nwires, nlayer, nitrs, timeLimit, isgpu, minus, path = utils.arg()

benchmarks/scripts/qml_benchmark.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import os
33
import utils
44

5-
65
if __name__ == "__main__":
76
_uuid = str(uuid.uuid4())
87
nwires, nlayer, nitrs, timeLimit, isgpu, minus, path, nbatch = utils.arg(qml=True)

benchmarks/scripts/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import optax
1010
import tensorcircuit as tc
1111

12-
1312
qml_data = {}
1413

1514

docs/source/tutorials/tfim_vqe.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@
450450
"\n",
451451
" def update(i, opt_state):\n",
452452
" param = get_params(opt_state)\n",
453-
" (value, gradient) = vqe_tfim_vvag(param, n, nlayers)\n",
453+
" value, gradient = vqe_tfim_vvag(param, n, nlayers)\n",
454454
" return value, opt_update(i, gradient, opt_state)\n",
455455
"\n",
456456
" for i in range(maxiter):\n",

docs/source/tutorials/tfim_vqe_cn.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@
447447
"\n",
448448
" def update(i, opt_state):\n",
449449
" param = get_params(opt_state)\n",
450-
" (value, gradient) = vqe_tfim_vvag(param, n, nlayers)\n",
450+
" value, gradient = vqe_tfim_vvag(param, n, nlayers)\n",
451451
" return value, opt_update(i, gradient, opt_state)\n",
452452
"\n",
453453
" for i in range(maxiter):\n",

examples/circuit_compiler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import tensorcircuit as tc
66

7-
87
c = tc.Circuit(3)
98
c.rx(0, theta=0.2)
109
c.rz(0, theta=-0.3)

examples/hchainhamiltonian.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import tensorcircuit as tc
2020

21-
2221
n = 4
2322
multiplicity = 1
2423
geometry = [("H", (0, 0, 0.95 * i)) for i in range(n)]

examples/lennard_jones_optimization.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import matplotlib.pyplot as plt
1717
import tensorcircuit as tc
1818

19-
2019
tc.set_dtype("float64") # Use tc for universal control
2120
K = tc.set_backend("jax")
2221

examples/multi_host/multicontroller_vqe.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import tensorcircuit as tc
1818
from tensorcircuit.experimental import DistributedContractor, broadcast_py_object
1919

20-
2120
# --- Static Configuration ---
2221
NUM_DEVICES_TOTAL = 4
2322
os.environ["XLA_FLAGS"] = f"--xla_force_host_platform_device_count={NUM_DEVICES_TOTAL}"

examples/multi_host/multicontroller_vqe_with_path.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import tensorcircuit as tc
1818
from tensorcircuit.experimental import DistributedContractor, broadcast_py_object
1919

20-
2120
# --- Static Configuration ---
2221
NUM_DEVICES_TOTAL = 4
2322
os.environ["XLA_FLAGS"] = f"--xla_force_host_platform_device_count={NUM_DEVICES_TOTAL}"

0 commit comments

Comments
 (0)