Registry / ai-ml / tensorcircuit-nightly

tensorcircuit-nightly

JSON →
library1.6.0.dev20260508pypypi✓ verified 84d ago

Nightly release of TensorCircuit-NG, a high-performance unified quantum computing framework for the NISQ era. Supports multiple backends (JAX, TensorFlow, PyTorch) for quantum circuit simulation, tensor network contraction, stabilizer simulation, and analog/digital quantum computing. Current version 1.6.0.dev20260508, released nightly.

pip install tensorcircuit-nightly
INSTALL
IMPORT
SIG · TENSORCIRCUIT-NIGH
T
tensorcircuit-nightly
ai-mlpythonv1.6.0.dev20260508
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

the full library
import tensorcircuit as tc
from tensorcircuit import *
Wildcard imports are discouraged; import as 'tc' to use namespaced functions.
QuantumCircuit
import tensorcircuit as tc c = tc.Circuit(n)
from tensorcircuit import QuantumCircuit
TensorCircuit uses 'Circuit', not 'QuantumCircuit'. Also no direct class import from top-level.

Create a Bell state circuit and measure Z expectation on qubit 1.

import tensorcircuit as tc c = tc.Circuit(2) c.h(0) c.cnot(0,1) print(c.expectation((tc.gates.z(), [1])))
Debug
Known issues
breakingTensorCircuit-NG (tensorcircuit-nightly) is a separate fork from the original TensorCircuit (tensorcircuit). Do not install both. The original is no longer maintained.
fix
Uninstall original: 'pip uninstall tensorcircuit'. Install nightly: 'pip install tensorcircuit-nightly'.
affects: >=1.0.0
deprecatedBackend 'tensorflow' is deprecated and may be removed in a future release. Use JAX or PyTorch instead.
fix
Set default backend: tc.set_backend('jax') or 'pytorch'.
affects: >=1.5.0
gotchaImporting 'tensorcircuit' directly (without the nightly suffix) installs the old, unmaintained version. Many APIs differ.
fix
Always install 'tensorcircuit-nightly' and import as 'tensorcircuit' (the package name is the same, but the distribution is different).
affects: >=1.0.0
gotchaThe nightly release may have breaking changes without notice. Pin to a specific version if reproducibility is needed.
fix
Use 'pip install tensorcircuit-nightly==1.6.0.dev20260508' for a specific nightly.
affects: >=1.0.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tensorcircuit'
Installed 'tensorcircuit-nightly' but imported as a different name, or package not installed.
fix
Run 'pip install tensorcircuit-nightly' and use 'import tensorcircuit as tc'.
AttributeError: module 'tensorcircuit' has no attribute 'Circuit'
Installed the old 'tensorcircuit' package (not nightly) which uses a different API.
fix
Uninstall 'tensorcircuit' and install 'tensorcircuit-nightly'. Then import as 'tensorcircuit'.
ValueError: Unsupported backend: 'tensorflow'
TensorFlow backend has been removed in nightly versions after 1.5.0.
fix
Use JAX or PyTorch backend: set tc.set_backend('jax') or 'pytorch'.
Upgrade
Version history
1.6.0.dev20260508latest on PyPI · released May 8, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
tensorcircuit-nightly — pip install tensorcircuit-nightly · libregistry