DEV Community

Cover image for Show DEV: Add quantum circuit diagrams to your posts
Andrew Kelly
Andrew Kelly

Posted on

Show DEV: Add quantum circuit diagrams to your posts

Over the past year or so I have been working on learning Quantum Computing given we are here:

  • Crypto
  • Web3
  • AI
  • Quantum Computing

One thing I have been needing is an easy way to draw quantum circuits for posts on here given Dev.to/Liquid does not yet support Q-Circuit notation in Katex.

There are a couple of existing sites to do this that don't provide export features. They are also pretty complex to work with so I wanted to create one that didn't require a Phd to use and that you could use to embed an image of the diagram in Dev.to

Introducing drawcircuits.xyz! 🔥

👉 drawcircuits.xyz

Features:

  • Simple visual editor for building quantum circuit diagrams
  • PNG export
  • Q-circuit notation export
  • Link to diagram
  • Markdown image link for embedding the diagram

Behold! 😍

Quantum circuit diagram

You can click on the image to edit the diagram.

Usage

To add a quantum circuit diagram to your Dev.to post, just go to (https://www.drawcircuits.xyz), draw the circuit and choose the "Markdown image link" export option. This will copy a Markdown link to your clipboard that you just paste into your post. Voila!

More features

So far I have added the basic gates. In the future I plan to add more options such as:

  • Quantikz notation export
  • Specify initial state of quantum registers
  • Named qubits

Add a comment below if there is something else you think I am missing.

Top comments (0)