Quantum Circuits
Latex-Rendering
PatternAtlas supports inline LaTeX code rendering for quantum circuits. This requires the setup of Latex-Renderer.
PatternAtlas supports Qcircuit and Quantikz circuit defintions.
Simply copy your Qcircuit or Quantikz code into the content of a Pattern.
Qcircuit example:
\Qcircuit @C=1em @R=.7em {
& \ctrl{1} & \targ & \qw \\
& \targ & \ctrl{-1} & \qw
end}
Info
The "end" tag is required to close the Qcircuit section in PatternAtlas
Quantikz example:
\begin{quantikz}
& \targ{} & \gate{U} & \qw \\
& \ctrl{1} \vqw{-1} & \meter{} \vcw{-1} \\
& \targ{} & \qw
\end{quantikz}
Discussion
PatternAtlas supports the Discussion of the rendered Qcircuit and Quantikz circuits. Simply click the "Comment Picture" button and mark an area within the circuit and then add your comment. To answer on comments click the marked area and submit your comment.
OpenQASM
PatternAtlas supports the Integration of OpenQASM 2.0 Algorithms. The algorithm will get displayed as a graphical circuit. Simply copy your OpenQASM code into the content of a Pattern and add the "end" tag:
OPENQASM 2.0;
include "qelib1.inc";
qreg q[2];
h q[0];
cx q[0], q[1]; end
Info
The "end" tag is required to close the OpenQASM section in PatternAtlas