# Tag Info

11

Edit — I've revised this answer to make some small improvements in the commands, to tidy up the commands for drawing the wires for instance, because it seemed worthwhile. Flattering as it is to have this answer be the accepted one for the time being, I think I should point out that the quantikz package (see Daftwullie's answer below) and the qpic ...

7

I always used to use qcircuit but, as it happens, I've recently been developing a tikz library to do the job, which has some added flexibility. The package will be available at the following DOI: 10.17637/rh.7000520. First, I load my library in the document preamble \usetikzlibrary{quantikz} Then I typeset the circuit with \begin{tikzcd} \lstick{Ancilla \...

4

According to the meta-information in the PDF of the figure, it has been created with PowerPoint: $pdfinfo HHL_circuit.pdf Title: HHL_circuit Creator: PowerPoint Producer: Mac OS X 10.13.2 Quartz PDFContext [...] (You can download paper sources from the arxiv by choosing "other formats".) 4 I know there is the Latex package qcircuit But I am not sure about how they did the boxes for the 3 parts a,b,c. Maybe some image tool for drawing them. Edit : Found this discussion where one admitted using Tikz for drawing similar images Edit 2 : I found this little tool called qpic which can help you build fancy quantum circuits. You will be able to ... 3 From the spec,$U_2(\phi, \lambda) = U ( \frac{\pi}{2}, \phi, \lambda)\$. We can use Cirq's QasmUGate. import cirq from cirq.circuits.qasm_output import QasmUGate q0 = cirq.NamedQubit('q[0]') u2_gate = QasmUGate(0.5, 0, 1) # The angles are normalized to the range [0, 2) half_turns circuit = cirq.Circuit(u2_gate(q0))

1

I checked the source code in the qasm2tex.py file. On line 410 the if structure goes like: if(m): (name,nctrl) = m.group(1).split(',') tex = m.group(2) if(tex=='bullet'): # special for bullet, no \op{} texsym = r'\b' elif(tex.find(r'\dmeter')>=0): # if meas, don't put in \op{} texsym = tex else: texsym =...

Only top voted, non community-wiki answers of a minimum length are eligible