Metadata-Version: 2.4
Name: qubitz
Version: 0.0.4
Summary: Learn how quantum computers work — an interactive, beginner-friendly quantum simulator (GUI + CLI)
Author: Bayram Kotan
License: MIT
Project-URL: Homepage, https://github.com/bayramkotan/qubitz
Project-URL: Issues, https://github.com/bayramkotan/qubitz/issues
Keywords: quantum,quantum computing,qubit,bloch sphere,education,simulator,pyside6
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Education
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Topic :: Education
Classifier: Environment :: X11 Applications :: Qt
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PySide6>=6.5
Requires-Dist: numpy>=1.24
Dynamic: license-file

# ⚛ qubitz

**Learn how quantum computers work — by touching them.**

qubitz is an interactive, beginner-friendly quantum computing simulator for Windows, Linux and macOS.
No physics or maths background is needed: every idea comes with a guided step, a small task to try,
and a live 3D picture that reacts to what you do.

![qubitz — the qubit and the Bloch sphere](https://raw.githubusercontent.com/bayramkotan/qubitz/main/docs/screenshot.png)

## Features

- **Interactive 3D Bloch sphere** — drag to rotate, double-click to reset the view; the arrow leaves a trail so you can see the path a gate takes.
- **Animated gates** — X, Y, Z, H, S, T. Each gate shows the axis it turns the sphere around while the arrow moves.
- **Set the state yourself** — θ and φ sliders move the arrow anywhere on the sphere.
- **Live state readout** — amplitudes `α|0⟩ + β|1⟩`, angles, Bloch coordinates and probability bars.
- **Measurement** — measure once and watch the state collapse, or measure 1000 copies and see the histogram.
- **Guided lesson** — 8 steps from "what is a bit?" to superposition, measurement and phase, each with a task that ticks itself off when you solve it.
- **Turkish and English** interface, switchable live.
- **Seven themes**, switchable live from the header: Classic (the original dark look), Paper, Night, Nord, Amber, Lab and Rose — each new theme with its own bundled font pair (Fraunces, Inter, Sora, Outfit, Plus Jakarta Sans, Space Grotesk, IBM Plex Sans, Manrope, DM Sans, JetBrains Mono; all SIL Open Font License, licences in `src/qubitz/assets/fonts/licenses/`).
- **Command line** — the same simulator in the terminal.

## Install

```bash
pip install qubitz                # desktop app + CLI (Python)
npm install qubitz-js             # qubit core for JavaScript, CLI: qubitz-js
cargo install qubitz              # qubit core for Rust, CLI: qubitz-rs
```

| Registry | Package | Contents |
|---|---|---|
| [PyPI](https://pypi.org/project/qubitz/) | `qubitz` | full app: window + CLI (`qubitz`, `qz`) |
| [npm](https://www.npmjs.com/package/qubitz-js) | `qubitz-js` | single-qubit core (`Qubit`, gates, Bloch vector, measurement) + `qubitz-js` |
| [crates.io](https://crates.io/crates/qubitz) | `qubitz` | single-qubit core, no dependencies + `qubitz-rs` |

All three give the same numbers for the same gates.

## Run

```bash
qubitz          # opens the window
qz              # short alias
```

### Command line

```bash
qubitz state --gates H S             # state, probabilities, Bloch vector
qubitz state --theta 120 --phi 45    # any point on the sphere (degrees)
qubitz measure --gates H --shots 1000
qubitz gates                         # what each gate does
qubitz theme                         # list themes; qubitz theme gece chooses one
qubitz --lang tr state -g H          # Turkish output
qubitz -v                            # version
```

## Roadmap

| Module | Topic | Status |
|---|---|---|
| 1 | Qubit and the Bloch sphere | ✅ v0.0.1 |
| 2 | Quantum gates | planned |
| 3 | Measurement and probability | planned |
| 4 | Entanglement (Bell states) | planned |
| 5 | Circuit editor (drag & drop) | planned |
| 6 | Algorithms — Deutsch–Jozsa, Grover, teleportation, QFT, Shor | planned |
| 7 | Noise and decoherence | planned |

qubitz uses its own small state-vector simulator written with NumPy, so every number on screen can be traced back to plain linear algebra.

## License

MIT © Bayram Kotan
