Quantum state visualization — Bloch spheres, probability plots, circuit drawing
Project description
crowe-quantum-viz
Quantum visualization — Bloch sphere rendering, probability bar charts, phase disks, density matrix heatmaps, and ASCII circuit drawing.
Installation
pip install crowe-quantum-viz
Features
- Bloch Sphere: Compute Bloch coordinates via Pauli traces, render 3D sphere data
- Probability Plots: Bar chart data with phase-based coloring
- Phase Disk: Polar plot of amplitude and phase
- Density Heatmap: Real/imaginary component visualization
- State Table: Tabular state decomposition with amplitudes, probabilities, phases
- Circuit Drawing: ASCII circuit diagrams from CircuitIR
Quick Start
from crowe_quantum_viz import bloch_coords, BlochSphere, CircuitDrawer
from crowe_quantum_core import states
# Bloch sphere coordinates for |+⟩
coords = bloch_coords(states.PLUS)
print(f"({coords.x:.2f}, {coords.y:.2f}, {coords.z:.2f})") # (1.0, 0.0, 0.0)
# ASCII circuit diagram
from crowe_quantum_core.circuit_ir import CircuitIR
circuit = CircuitIR(num_qubits=2)
circuit.h(0)
circuit.cnot(0, 1)
drawer = CircuitDrawer(circuit)
print(drawer.to_text())
Part of the Crowe Quantum Platform
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crowe_quantum_viz-1.0.1.tar.gz
(10.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crowe_quantum_viz-1.0.1.tar.gz.
File metadata
- Download URL: crowe_quantum_viz-1.0.1.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c35ce6bbf7be03cf94bd7c9a1319aaf69059a16184bc12614da1b1be96ba00e1
|
|
| MD5 |
fc0cb715c29cdaccd083d988616a089f
|
|
| BLAKE2b-256 |
cc7e06a15939c0076d949686d8c6a230c761b0ca75841b4a2ed2faaac011d5c2
|
File details
Details for the file crowe_quantum_viz-1.0.1-py3-none-any.whl.
File metadata
- Download URL: crowe_quantum_viz-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abc103d577bdda2d869be8f9617e30ef6554626aea011fe883d813fb85dd0559
|
|
| MD5 |
683f1a989273b9cfbe1df8f823a237ef
|
|
| BLAKE2b-256 |
42a38cffb74df681e62d4f2ed230ae1e22a9dbb8fea180c87f8f918aef3d256a
|