A drag-and-drop quantum circuit simulator that runs in your browser. A toy for exploring and understanding small quantum circuits.
See the codeQuirk 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 to algassert.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 circuit even is, then I recommend the video series Quantum Computing for the Determined. Quirk assumes you already know background facts like "each wire represents a qubit".)
Defining features:
Notable limitations:
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.
Have git and Node.js installed.
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install --yes git npm nodejs-legacy
Clone the repository.
git clone https://github.com/Strilanc/Quirk.git
Install the dev dependencies.
cd Quirk
npm install
(Optional) Make your changes. Run the tests.
npm run test-firefox
Build the output.
npm run build
Confirm the output works by opening out/quirk.html with a web browser.
firefox out/quirk.html
Copy out/quirk.html to wherever you want.
Quirk is not an official Google product.
1,080 followers · starred Apr 2020
57 followers · starred Oct 2026
683 followers · starred Nov 2018
739 followers · starred May 2016
A drag-and-drop quantum circuit simulator that runs in your browser. A toy for exploring and understanding small quantum circuits.
See the codeQuirk 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 to algassert.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 circuit even is, then I recommend the video series Quantum Computing for the Determined. Quirk assumes you already know background facts like "each wire represents a qubit".)
Defining features:
Notable limitations:
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.
Have git and Node.js installed.
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install --yes git npm nodejs-legacy
Clone the repository.
git clone https://github.com/Strilanc/Quirk.git
Install the dev dependencies.
cd Quirk
npm install
(Optional) Make your changes. Run the tests.
npm run test-firefox
Build the output.
npm run build
Confirm the output works by opening out/quirk.html with a web browser.
firefox out/quirk.html
Copy out/quirk.html to wherever you want.
Quirk is not an official Google product.
1,080 followers · starred Apr 2020
57 followers · starred Oct 2026
683 followers · starred Nov 2018
739 followers · starred May 2016