Install & Compatibility
Where this runs
tested against v1.5.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 6.820s · 489.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 23.3s · import 6.504s · 473MB
513MB installed
● package 513MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Circuit3D
✓ from cirq_web import Circuit3D
✗ from cirq.web import Circuit3D
cirq-web uses underscores in its Python module name (cirq_web), not a dot-separated subpackage.
BlochSphere
✓ from cirq_web import BlochSphere
Create a 3D visualization of a quantum circuit.
import cirq
from cirq_web import Circuit3D
# Create a simple circuit
q0, q1 = cirq.LineQubit.range(2)
circuit = cirq.Circuit(
cirq.H(q0),
cirq.CNOT(q0, q1),
cirq.measure(q0, q1, key='result')
)
# Visualize as 3D circuit
Circuit3D(circuit)
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'cirq_web'
cirq-web is not installed; it is a separate package from cirq-core.
fixRun 'pip install cirq-web'
ImportError: cannot import name 'Circuit3D' from 'cirq.web'
Incorrect import path: users often try 'from cirq.web import ...' instead of 'from cirq_web import ...'.
fixUse 'from cirq_web import Circuit3D'
Upgrade
Version history
1.6.1latest on PyPI · released Aug 14, 2025
Audit
Dependencies
cirq-corerequiredRequired for quantum circuit definitions and core Cirq objects; cirq-web builds on cirq-core.
ipythonoptionalRequired for notebook integration; used to display 3D visualizations in Jupyter.