Strilanc / Quirk

A drag-and-drop quantum circuit simulator that runs in your browser. A toy for exploring and understanding small quantum circuits.

Home Page:http://algassert.com/quirk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Export to LaTeX

ShawnGeller opened this issue · comments

I know that this isn't really crucial to the goal of the project, but it would be nice to have an export to LaTeX using e.g. https://github.com/CQuIC/qcircuit/, as quirk is also a very nice drawing tool.

Personally I just take screenshots and put those in my papers. To do better than that, it would be necessary to produce vector graphics like SVG, but in my experience SVGs that have the number of lines and curves that appear in a medium sized Quirk display would grind most pdf readers to a halt. Also, having a whole separate render path with different aesthetic expectations (e.g. papers tend to be less colorful) is a lot of work!

An alternative workaround would be to use a tool that can import quirk URLs and export latex (such as Cirq).

This is a good suggestion, but it's a lot of work for not much marginal gain. So I'm going to close this as "I'm just never gonna get around to it".

Thanks for the Cirq suggestion, I didn't know about it! I wrote a tiny python script that does this workaround.

Something like canvas2svg might be a relatively easy way to do this?