Skip to content

Commit 92bc8e4

Browse files
committed
fix black
1 parent 0ad707c commit 92bc8e4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/lennard_jones_optimization.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@
1414
import matplotlib.pyplot as plt
1515

1616
# Try to enable JAX 64-bit precision if available (safe fallback)
17-
import jax # noqa: E402
1817

1918
try: # pragma: no cover - optional optimization
2019
from jax import config as jax_config # type: ignore
2120

2221
jax_config.update("jax_enable_x64", True)
2322
except Exception: # broad: environment may not have config attribute
2423
pass
25-
import jax.numpy as jnp # noqa: E402
2624
import tensorcircuit as tc # noqa: E402
2725

2826

tests/test_backends.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,12 +1194,12 @@ def test_backend_all(backend):
11941194
# Test all True
11951195
a = tc.backend.convert_to_tensor([True, True, True])
11961196
result = tc.backend.all(a)
1197-
assert result == True
1197+
assert result is True
11981198

11991199
# Test with False
12001200
b = tc.backend.convert_to_tensor([True, False, True])
12011201
result = tc.backend.all(b)
1202-
assert result == False
1202+
assert result is False
12031203

12041204

12051205
@pytest.mark.parametrize("backend", [lf("npb"), lf("tfb"), lf("jaxb"), lf("torchb")])

0 commit comments

Comments
 (0)