Quantum Computing SEArchived Mar 16, 2026✓ Full text saved
What tools exist for creating quantum circuit diagrams and exporting them as images? Preferably one which runs in Windows, or even better one which runs in the web browser.
Full text archived locally
✦ AI Summary· Claude Sonnet
Tools for creating quantum circuit diagrams
Ask Question
Asked 7 years, 4 months ago
Modified 13 days ago
Viewed 14k times
23
What tools exist for creating quantum circuit diagrams and exporting them as images? Preferably one which runs in Windows, or even better one which runs in the web browser.
resource-request
Share
Improve this question
Follow
edited Oct 30, 2018 at 20:03
asked Oct 30, 2018 at 18:44
ahelwer
4,3782
2 gold badges
16
16 silver badges
40
40 bronze badges
Related: How to re-create the following circuit image? –
Sanchayan Dutta
Commented
Apr 5, 2019 at 18:43
Add a comment
8 Answers
Sorted by:
Highest score (default)
Date modified (newest first)
Date created (oldest first)
24
Depending on how involved your circuit is you could use
Quantikz (written by @DaftWullie I believe)
or
Q-circuit by Bryan Eastin and Steve Flammia.
These are tools to make circuit diagrams in TeX for papers and the like, but you can always make your TeX file just the circuit you want and save it as a pdf. Making complex and incredibly long circuits might be a bit of a hassle and would be better done in an automated tool like the one posted by Davide_sd.
Share
Improve this answer
Follow
edited Oct 31, 2018 at 17:20
answered Oct 30, 2018 at 23:26
Dripto Debroy
1,90610
10 silver badges
12
12 bronze badges
1
And remember that adobe reader has a snapshot option so you can easily convert it into an image. –
DaftWullie
Commented
Oct 31, 2018 at 5:58
1
It’s probably not fair to call qcircuit a predecessor as that sort of implies that quantikz is the newer, updated version. While it is newer, and mirrors much of the functionality, the two things are entirely independent. –
DaftWullie
Commented
Oct 31, 2018 at 6:11
Thats fair! I'll take that like out. –
Dripto Debroy
Commented
Oct 31, 2018 at 17:20
I love DaftWullie.. :) –
QuestionEverything
Commented
Feb 8, 2025 at 4:25
Add a comment
9
I'm new to the quantum world as well, but so far I've been able to draw my basic simple circuits with Qasm2Circ. It requires:
latex2e with xypic (included in tetex)
python version 2.3 or greater
ghostscript (and epstopdf) (for creation of pdfs)
netpbm (for creation of png files)
Hopefully, somebody will be able to list other tools.
Share
Improve this answer
Follow
answered Oct 30, 2018 at 19:35
Davide_sd
3051
1 silver badge
7
7 bronze badges
Do you use this in Windows? –
ahelwer
Commented
Oct 30, 2018 at 19:51
No, I'm using it on Ubuntu. Although, it seems there exist a version for Windows too, check out this Github repo. –
Davide_sd
Commented
Oct 30, 2018 at 19:54
1
If you use miktex on windows for doing the latex, then one of the tools it comes with (although you need to know to look for it) is bmeps which you can use for crating image files –
DaftWullie
Commented
Oct 31, 2018 at 6:01
Add a comment
9
[...] quantum circuit diagrams [...] even better one which runs in the web browser.
Quirk (algassert.com/quirk) runs in browsers and can be used to create simple circuit diagrams. I use it for this purpose all of the time, though it's main purpose is to simulate circuits.
Just drag the gates you want into the circuit, perhaps use the simulation results to check that everything is behaving correctly, and then take a screenshot with e.g. Windows' Snipping Tool. Most browsers also have an option to turn a canvas into an image (e.g. in firefox if you right-click on the circuit you can select 'view image' that you can then download and crop). You can bookmark the circuit to come back to it later, in case you make a small mistake.
The main downside of this approach is a) it requires manual work every time, b) it produces bitmap images instead of vector images, and c) it is somewhat inflexible (e.g. you can't put operations with different controls into the same column).
Example:
Share
Improve this answer
Follow
edited Oct 31, 2018 at 19:02
answered Oct 31, 2018 at 17:08
Craig Gidney
51.2k1
1 gold badge
53
53 silver badges
133
133 bronze badges
Add a comment
8
Master of Science degree project developed by Joanna Patrzyk and Bartłomiej Patrzyk at AGH UST in Cracow.
http://www.quide.eu/
It can simulate designed circuits by generating simulator code in C#. Runs under Windows. Available under GPLv3.
IBM Quantum Experience. Its interface runs in web browser.
https://quantumexperience.ng.bluemix.net/qx/editor
It can run on "real" quantum computer. Available for research purposes only.
Here is the agreement: https://quantumexperience.ng.bluemix.net/qx/terms
And user guide: https://quantumexperience.ng.bluemix.net/qx/tutorial?sectionId=full-user-guide&page=introduction
Share
Improve this answer
Follow
edited Oct 31, 2018 at 8:31
answered Oct 31, 2018 at 8:25
mpasko256
1812
2 silver badges
6
6 bronze badges
Add a comment
6
For drawing in your browser, there is a demo of the Quantikz.jl package you can use:
Various programming languages have their own circuit drawing libraries as well. For latex code probably the best choice is Quantikz, and if you are programming in Julia you can create a diagram (png or latex code) with the Quantikz.jl library.
Share
Improve this answer
Follow
edited Apr 24, 2021 at 19:10
answered Dec 19, 2020 at 22:14
Krastanov
2012
2 silver badges
4
4 bronze badges
Add a comment
4
One of the best tools to use is the "Quantum Computing" package in Mathematica: http://homepage.cem.itesm.mx/jose.luis.gomez/quantum/
Here you can just input all the useful gates directly and also completely manipulate the Circuits in a complete GUI interface.
Moreover, you can also perform all the desired operations over qubits.
Share
Improve this answer
Follow
answered Nov 4, 2018 at 13:25
Siddhant Singh
1,83510
10 silver badges
22
22 bronze badges
You're using Version 7? Does it have any problems with newer versions? –
AHusain
Commented
Nov 4, 2018 at 13:47
No, this is an old screenshot. I am using Mathematica 11.3 with this package and it works perfectly without any clash. –
Siddhant Singh
Commented
Nov 4, 2018 at 13:52
Add a comment
1
I have just uploaded a beta version of a web-based interface for quantikz where you can drag and drop circuit elements, and it will spit out the correct code for quantikz (or you can save the image that the preview creates). It only supports a limited subset of quantikz commands (I have no intention of writing a full tikz parser in javascript!) but I think is a good starting point for novices. Feedback (by email) happily accepted.
Share
Improve this answer
Follow
answered Feb 23 at 9:44
DaftWullie
64.4k4
4 gold badges
59
59 silver badges
148
148 bronze badges
Add a comment
1
Circuit Designer is a drag and drop tool developed by PsiQuantum for this. It is designed specifically for quantum circuit diagrams and not for simulating code. The main upsides of it are that:
You have complete flexibility over the canvas
You can created subroutines and add gates with them
You can export as vector images and bitmap images
Share
Improve this answer
Follow
answered Mar 3 at 20:01
Ian Nanez
112
2 bronze badges
Add a comment
Your Answer
Sign up or log in
Sign up using Google
Sign up using Email and Password
Post as a guest
Name
Email
Required, but never shown
Post Your Answer
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Ask question
Explore related questions
resource-request
See similar questions with these tags.
The Overflow Blog
Open source for awkward robots
Domain expertise still wanted: the latest trends in AI-assisted knowledge for...
Featured on Meta
Logo updates to Stack Overflow's visual identity
Linked
7
How to re-create the following circuit image?
2
How to construct a quantum circuit for the following state transformation?
Related
13
Good introductory material on quantum computational complexity classes
16
Graphical Calculus for Quantum Circuits
21
Reference that explains how to read 3d topological diagrams for surface code computations
9
Is there any 'official' list of errata for Nielsen & Chuang?
6
Complexity of a distribution of measurement of output of quantum circuit
2
State Initialization of quantum circuit
3
References of group theory for quantum information theory
7
Publicly available samples for quantum circuits and/or simulators
12
How are quantum algorithms devised?
4
For which non-universal gate sets are there magic states?
Hot Network Questions
LilyPond: Unusually nested repeats
apt-key is removed in Debian 13. How to list keys?
Why is there a dash before "tu" in "Quel quartier préfères‑tu ?"
Relation between sign of electrode potential and oxidising/reducing nature of species
How can a "new" superposition state be prepared?
Is what I did in the picture "legal"?
BCsort: A fast, statistical, in-place ternary distribution sort
LTSpice model of IRF520 body diode
How do I set a static IP on startup?
Pascal's Triangle !
Definition of n-huge cardinals in Harvey Friedman's works
Pi Day: estimating pi using probability
Problem with the numeric core example in Blue Prince
What do I do? I am underqualified for my job
ATTiny816 - How are these two code fragments different?
Best way to control a voltage divider using GPIO
Would the federal government receiving money from brokering a business takeover be a breach of the Hatch Act?
How random is RandomInteger[{0,B}]?
DocumentMetadata impeding the processing of otherwise normal file
Wrap bracelets around a cube
Will modeling frameworks like JuMP become the dominant interface for complex algorithmic research?
How do I solve the Alignment Control Centre puzzle?
Is it possible (or even desirable, beyond a certain "didactic clarity") to keep epistemology and ontology as two separate disciplines?
"Out of malice"?
Question feed
By continuing to use this website, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. By exiting this window, default cookies will be accepted. To reject cookies, select an option from below.
Customize settings
Cookie Consent Preference Center
When you visit any of our websites, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences, or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and manage your preferences. Please note, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
Cookie Policy
Accept all cookies
Manage Consent Preferences
Strictly Necessary Cookies
Always Active
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
Targeting Cookies
Targeting Cookies
These cookies are used to make advertising messages more relevant to you and may be set through our site by us or by our advertising partners. They may be used to build a profile of your interests and show you relevant advertising on our site or on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device.
Performance Cookies
Performance Cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
Functional Cookies
Functional Cookies
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
Cookie List
Clear
checkbox label label
Apply Cancel
Consent Leg.Interest
checkbox label label
checkbox label label
checkbox label label
Necessary cookies only Confirm My Choices