Metadata-Version: 2.4
Name: qubitz
Version: 0.0.7
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

<p align="center">
  <img src="https://raw.githubusercontent.com/bayramkotan/qubitz/main/src/qubitz/assets/icon.png" width="112" alt="qubitz icon">
</p>

<h1 align="center">qubitz</h1>

<p align="center"><b>Learn how quantum computers work — by touching them.</b></p>

<p align="center">
  <a href="https://pypi.org/project/qubitz/"><img src="https://img.shields.io/pypi/v/qubitz?label=PyPI&color=2F5BD3" alt="PyPI"></a>
  <a href="https://www.npmjs.com/package/qubitz-js"><img src="https://img.shields.io/npm/v/qubitz-js?label=npm&color=D9601F" alt="npm"></a>
  <a href="https://crates.io/crates/qubitz"><img src="https://img.shields.io/crates/v/qubitz?label=crates.io&color=1B1A17" alt="crates.io"></a>
  <a href="https://github.com/bayramkotan/qubitz/releases/latest"><img src="https://img.shields.io/github/v/release/bayramkotan/qubitz?label=portable%20builds" alt="Portable builds"></a>
  <a href="https://github.com/bayramkotan/qubitz/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-555" alt="MIT licence"></a>
</p>

qubitz is an interactive quantum-computing course and simulator for **Windows, Linux and macOS**.
No physics or maths background is needed: every idea comes with a guided step, a small task that ticks itself off,
a live picture that reacts to what you do — and **anything on the screen can be clicked to have it explained**.

![qubitz — a qubit on the Bloch sphere](https://raw.githubusercontent.com/bayramkotan/qubitz/main/docs/screenshots/01-qubit.png)

---

## Contents

- [Why qubitz](#why-qubitz) · [Seven modules](#seven-modules) · [Click to learn](#click-to-learn)
- [Install](#install) · [Portable builds](#portable-builds) · [Command line](#command-line)
- [Themes and languages](#themes-and-languages) · [Keyboard shortcuts](#keyboard-shortcuts) · [JavaScript and Rust](#javascript-and-rust)

## Why qubitz

- **Learn by doing.** Every module is a small lab: turn the qubit with gates, measure it, entangle two qubits, build circuits, run real algorithms.
- **Nothing is hidden.** Its own small state-vector simulator (NumPy) means every number on screen is plain linear algebra you can follow — down to matrix × vector, row by row.
- **Three explanation levels.** *Basic* uses everyday comparisons and no maths, *Standard* explains the ideas, *Expert* shows matrices, Dirac notation and formulas. Lessons, cards and panels all follow the level you pick.
- **A guided tour** on first start, a **glossary** of 48 concepts, and lessons whose tasks you can't fail to notice: solve one and the *Next* button turns green.

## Seven modules

| # | Module | What you do |
|---|---|---|
| 1 | **Qubit and the Bloch sphere** | turn the arrow with gates and sliders, measure once or 1000 times, see the odds |
| 2 | **Quantum gates** | watch matrix × vector row by row; X Y Z H S T S† T† and Rx/Ry/Rz; see interference (H·H = I) as paths that add up or cancel |
| 3 | **Measurement and probability** | measure along Z, X or Y; watch the frequency close in on the probability as the shots grow |
| 4 | **Entanglement** | two qubits, CNOT and Bell states; the single arrows vanish; measure one and the other is fixed |
| 5 | **Circuit editor** | place gates and CNOTs on a 1–4 qubit grid, run it column by column, build Bell and GHZ states |
| 6 | **Algorithms** | Deutsch (one query), Grover search with the mean line, quantum teleportation |
| 7 | **Noise and decoherence** | T1 and T2 shrink the arrow; why real hardware needs error correction |

### Quantum gates — matrix × vector and interference
![Module 2: quantum gates](https://raw.githubusercontent.com/bayramkotan/qubitz/main/docs/screenshots/03-gates.png)

### Measurement — the frequency converges to the probability
![Module 3: measurement](https://raw.githubusercontent.com/bayramkotan/qubitz/main/docs/screenshots/04-measurement.png)

### Entanglement — the single arrows vanish
![Module 4: entanglement](https://raw.githubusercontent.com/bayramkotan/qubitz/main/docs/screenshots/05-entanglement.png)

### Circuit editor — a three-qubit GHZ state
![Module 5: circuit editor](https://raw.githubusercontent.com/bayramkotan/qubitz/main/docs/screenshots/06-circuit.png)

### Algorithms — Grover search
![Module 6: algorithms](https://raw.githubusercontent.com/bayramkotan/qubitz/main/docs/screenshots/07-algorithms.png)

### Noise — T1 and T2
![Module 7: noise](https://raw.githubusercontent.com/bayramkotan/qubitz/main/docs/screenshots/08-noise.png)

## Click to learn

Click any label, bar, point of the sphere, the arrow or the histogram — or right-click a button or slider — and a card explains it,
at the level you chose, with a demo button and links to related ideas. **Explain mode** (F1) turns every click into an explanation.
Underlined words in the lessons open their cards too.

![A concept card](https://raw.githubusercontent.com/bayramkotan/qubitz/main/docs/screenshots/02-explain.png)

## Install

```bash
pip install qubitz
```

Then start it:

```bash
qubitz      # or the short alias: qz
```

qubitz needs Python 3.10 or newer; PySide6 and NumPy are installed with it. **Help → Check for updates** (or `qubitz update`)
updates the copy you are running, wherever it is installed.

## Portable builds

No Python? Every [release](https://github.com/bayramkotan/qubitz/releases/latest) carries ready-to-run builds:

| System | Download |
|---|---|
| Windows | `qubitz-windows-x64.zip` — a single `qubitz.exe` |
| Linux | `qubitz-x86_64.AppImage`, or `qubitz-linux-x86_64.tar.gz` with a single binary |
| macOS | `qubitz-macos-arm64.zip` — `qubitz.app` |

## Command line

The same simulator runs in the terminal:

```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 the themes; qubitz theme gece picks one
qubitz update --check                # is there a newer version?
qubitz --lang tr state -g H          # Turkish output
qubitz -v                            # version
```

## Themes and languages

Seven themes, switchable live from the header — Classic, Paper, Night, Nord, Amber, Lab and Rose — each with its own bundled font pair
(Fraunces, Inter, Sora, Outfit, Plus Jakarta Sans, Space Grotesk, IBM Plex Sans, Manrope, DM Sans, JetBrains Mono; SIL Open Font License).

![The seven themes](https://raw.githubusercontent.com/bayramkotan/qubitz/main/docs/screenshots/10-themes.png)

The interface speaks **Turkish, English, German, French, Spanish, Russian, Azerbaijani Turkish and Arabic** (right-to-left).
Lessons and concept cards are written in Turkish and English; other languages show them in English for now.

![Night theme](https://raw.githubusercontent.com/bayramkotan/qubitz/main/docs/screenshots/09-night.png)

## Keyboard shortcuts

| Key | Action |
|---|---|
| X · Y · Z · H · S · T | apply the gate |
| M / Shift+M | measure once / 1000 times |
| F1 | Explain mode |
| Ctrl+G | glossary |
| Alt+← / Alt+→ | previous / next lesson step |
| Ctrl+R | reset |
| F11 | full screen |
| Ctrl+, | settings |

## JavaScript and Rust

The single-qubit core is also published for other languages — the same gates and the same numbers:

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

```bash
npm install qubitz-js
cargo add qubitz
```

## Licence

MIT © Bayram Kotan. Bundled fonts are distributed under the SIL Open Font License (see `src/qubitz/assets/fonts/licenses/`).
