Skip to main content

qubitz icon

qubitz

Learn how quantum computers work — by touching them.

PyPI npm crates.io Portable builds MIT licence

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


Contents

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

Measurement — the frequency converges to the probability

Module 3: measurement

Entanglement — the single arrows vanish

Module 4: entanglement

Circuit editor — a three-qubit GHZ state

Module 5: circuit editor

Module 6: algorithms

Noise — T1 and T2

Module 7: noise

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

Install

pip install qubitz

Then start it:

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 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:

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

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

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 qubitz the full app: window + CLI (qubitz, qz)
npm qubitz-js Qubit, gates, Bloch vector, measurement + CLI qubitz-js
crates.io qubitz dependency-free core + CLI qubitz-rs
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/).

Metadata

Release files for qubitz 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qubitz 0.0.7
File Size Uploaded Provenance Actions
qubitz-0.0.7.tar.gz 1.4 MB Without provenance Details for qubitz-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qubitz 0.0.7
File Interpreter ABI Platform Actions
qubitz-0.0.7-py3-none-any.whl Python 3 none any Details for qubitz-0.0.7-py3-none-any.whl

Total release size: 2.8 MB

Release files / qubitz-0.0.7.tar.gz

Download URL qubitz-0.0.7.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
a6db5825b9193eab5248233de70af6af1d7bcf6fe6496a843d5c6dad97880c74
BLAKE2b-256 checksum
How to use checksums
aaa6979c72498ea3af68a143348871aee4abfc170f58e6ca007cc9bf2fdc8203
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / qubitz-0.0.7-py3-none-any.whl

Download URL qubitz-0.0.7-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
60eb7aafba7db61c68c54956cd6862a81dcc079600ff09aafc484d8534767db1
BLAKE2b-256 checksum
How to use checksums
8e8ff56218953d9497a9f95d741820fe8c414929786744d94a2aeb9e11a9cd58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for qubitz 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page