Questions tagged [qasm2circ]

qasm2circ is a package which converts a QASM file into a graphical depiction of the quantum circuit, using standard quantum gate symbols (and other user-defined symbols). This is done using latex (specifically, xypic), to produce high-quality output in epsf, pdf, or png formats.

3 questions
7
votes
4 answers

How to re-create the following circuit image?

What would be the best way to re-create the following image of the HHL quantum circuit without compromising on image quality (the image is from this review paper)? Using qasm2circ I can create the basic circuit. But I don't know any good…
Sanchayan Dutta
  • 17,945
  • 8
  • 50
  • 112
2
votes
1 answer

How to draw a multiple qubit controlled NOT gate using qasm2circ?

In Example 6, the case of multiple qubit controlled custom $U$ gate is covered, but I want to reuse the standard NOT symbol i.e. $\bigoplus$. Say I want to draw this circuit, but with a $\bigoplus$ instead of the $U$ in a box. Clearly, defining a…
Sanchayan Dutta
  • 17,945
  • 8
  • 50
  • 112
0
votes
1 answer

Implementing U2-Gates on Cirq

I am interested in using the QASM2Cirq methods to make this gate: u2(0, np.pi, q[0]). How can I build that object using Cirq rather than QASM string value passed onto cirq.
Enrique Segura
  • 1,011
  • 6
  • 9