- Notifications
You must be signed in to change notification settings - Fork177
A drag-and-drop quantum circuit simulator that runs in your browser. A toy for exploring and understanding small quantum circuits.
License
Strilanc/Quirk
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Quirk is a toy quantum circuit simulator, intended to help people in learning about quantum computing.
If you want to quickly explore the behavior of a small quantum circuit, Quirk is the tool for you.There's no installing or configuring or scripting: just go toalgassert.com/quirk, drag gates onto the circuit, and the output displays will update in real time.
(If you're still trying to understand what a quantum circuiteven is, then I recommend the video seriesQuantum Computing for the Determined.Quirk assumes you already know background facts like "each wire represents a qubit".)
Defining features:
- Runs in web browsers.
- Drag-and-drop circuit editing.
- Reacts, simulates, and animates in real time.
- Inline state displays.
- Bookmarkable / linkable circuits.
- Up to 16 qubits.
Notable limitations:
- Can't recohere measured qubits (because measurement is implemented as a hack based on thedeferred measurement principle).
Try it out:
Basic usage demo:
Grover search circuit with chance and sample displays (showing that the chance of success increases):
Quantum teleportation circuit with Bloch sphere displays (showing that the qubit at the top has ended up at the bottom):
If you want to modify Quirk, this is how you get the code and turn your changes into working html/javascript.
sudo add-apt-repository universesudo apt-get updatesudo apt-get install --yes git npm nodejs-legacyClone the repository.
git clone https://github.com/Strilanc/Quirk.gitInstall the dev dependencies.
cd Quirknpm install(Optional) Make your changes. Run the tests.
npm run test-firefoxBuild the output.
npm run buildConfirm the output works by opening
out/quirk.htmlwith a web browser.firefox out/quirk.htmlCopy
out/quirk.htmlto wherever you want.
Quirk is not an official Google product.
About
A drag-and-drop quantum circuit simulator that runs in your browser. A toy for exploring and understanding small quantum circuits.
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.


