{"id":28379,"library":"tensorcircuit-nightly","title":"TensorCircuit-NG (Nightly)","description":"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.","status":"active","version":"1.6.0.dev20260508","language":"python","source_language":"en","source_url":"https://github.com/tensorcircuit/tensorcircuit-ng","tags":["quantum computing","tensor network","simulation","nightly"],"install":[{"cmd":"pip install tensorcircuit-nightly","lang":"bash","label":"pip"}],"dependencies":[],"imports":[{"note":"Wildcard imports are discouraged; import as 'tc' to use namespaced functions.","wrong":"from tensorcircuit import *","symbol":"the full library","correct":"import tensorcircuit as tc"},{"note":"TensorCircuit uses 'Circuit', not 'QuantumCircuit'. Also no direct class import from top-level.","wrong":"from tensorcircuit import QuantumCircuit","symbol":"QuantumCircuit","correct":"import tensorcircuit as tc\nc = tc.Circuit(n)"}],"quickstart":{"code":"import tensorcircuit as tc\nc = tc.Circuit(2)\nc.h(0)\nc.cnot(0,1)\nprint(c.expectation((tc.gates.z(), [1])))","lang":"python","description":"Create a Bell state circuit and measure Z expectation on qubit 1."},"warnings":[{"fix":"Uninstall original: 'pip uninstall tensorcircuit'. Install nightly: 'pip install tensorcircuit-nightly'.","message":"TensorCircuit-NG (tensorcircuit-nightly) is a separate fork from the original TensorCircuit (tensorcircuit). Do not install both. The original is no longer maintained.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Set default backend: tc.set_backend('jax') or 'pytorch'.","message":"Backend 'tensorflow' is deprecated and may be removed in a future release. Use JAX or PyTorch instead.","severity":"deprecated","affected_versions":">=1.5.0"},{"fix":"Always install 'tensorcircuit-nightly' and import as 'tensorcircuit' (the package name is the same, but the distribution is different).","message":"Importing 'tensorcircuit' directly (without the nightly suffix) installs the old, unmaintained version. Many APIs differ.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use 'pip install tensorcircuit-nightly==1.6.0.dev20260508' for a specific nightly.","message":"The nightly release may have breaking changes without notice. Pin to a specific version if reproducibility is needed.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run 'pip install tensorcircuit-nightly' and use 'import tensorcircuit as tc'.","cause":"Installed 'tensorcircuit-nightly' but imported as a different name, or package not installed.","error":"ModuleNotFoundError: No module named 'tensorcircuit'"},{"fix":"Uninstall 'tensorcircuit' and install 'tensorcircuit-nightly'. Then import as 'tensorcircuit'.","cause":"Installed the old 'tensorcircuit' package (not nightly) which uses a different API.","error":"AttributeError: module 'tensorcircuit' has no attribute 'Circuit'"},{"fix":"Use JAX or PyTorch backend: set tc.set_backend('jax') or 'pytorch'.","cause":"TensorFlow backend has been removed in nightly versions after 1.5.0.","error":"ValueError: Unsupported backend: 'tensorflow'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}