Questions tagged [quantikz]
{quantikz} is a useful package for drawing quantum circuit diagrams.
56
questions
1
vote
1
answer
34
views
how can I auto number quantikz
I want quantikz to be able to number automatically,like this:
which I currently use align
\documentclass[12pt,reqno]{report}
\usepackage{amsfonts}
\usepackage{stmaryrd}
\usepackage{amsmath}
\...
2
votes
0
answers
17
views
Erasing Quantum Wire and Adding Dotted Arrows in Quantikz
I am trying to create a quantum circuit. See the attached image. I'd like to erase the quantum wire in the second row so I can put three vertical dotted arrows in the first column of the circuit to ...
2
votes
1
answer
41
views
can a \gategroup box have two labels?
I'm trying to place labels both above and below a single \gategroup box in my circuit, but haven't been able to figure it out, nor find examples on line. For instance:
\documentclass{article}
\...
2
votes
2
answers
51
views
Spacing and indexing in quantikz
Can somebody explain how I can add space in the following picture and code?
\documentclass{article}
\usepackage{quantikz}
\begin{document}
\begin{quantikz}
\lstick{A} &&& \\
\lstick[2]{\...
0
votes
0
answers
25
views
Quantum Circuit inside Gate
Is there a trick that allows me to put a quantum circuit inside a gate with quantikz?
My attempt so far is to use \includegraphics{<img>} to put an image inside the gate:
\documentclass[12pt]{...
1
vote
0
answers
15
views
Squish 2 gates into 1 cell
Does anybody know a way to squish 2 gates into one column with quantikz?
Take this circuit for example:
\documentclass[12pt]{article}
\usepackage{tikz}
\usetikzlibrary{quantikz2}
\begin{document}
\...
2
votes
1
answer
56
views
Underbrace quantum circuit without inputs
Is there a way to underbrace a quantikz circuit without the inputs?
What I have:
\documentclass[12pt]{article}
\usepackage{tikz}
\usetikzlibrary{quantikz2}
\begin{document}
$\underbrace{
\begin{...
3
votes
1
answer
61
views
Adjusting size of operations in quantikz
I am trying to adjust the relative size between gate boxes and simpler gate operations (e.g. CNOTs), but am having some trouble. The main motivation is to draw a large circuit, in which case the CNOT ...
-1
votes
1
answer
132
views
How to draw a quantum measurement in TikZ LaTeX
I want to draw a quantum measurement in TikZ LaTeX as the following image! Any ideas?
5
votes
2
answers
261
views
Quantikz not compatible with tikz-cd?
I want to draw quantum circuits and commutative diagrams, so I want to use the two packages quantikz and tikz-cd.
But somehow quantikz overwrites tikz-cd. Take a look at this code:
\documentclass[11pt,...
0
votes
1
answer
175
views
How to get quantikz2 working locally? [duplicate]
I am using latex in Ubuntu 22.04. I have been trying to generate quantum circuits using quantikz. I have been reading the documentation and they import the package as:
\usepackage{tikz}
\...
1
vote
1
answer
86
views
Quantikz circuits bugs in TexStudio
I'm working in a huge file in Tex Studio in which I create lots of circuits using quantikz. The issue is that whenever I draw a circuit in the third chapter or later, the diagram that appears in the ...
3
votes
1
answer
44
views
Prevent quantikz from altering tikz behaviour?
This code
\documentclass{article}
\usepackage{tikz-cd}
% \usetikzlibrary{quantikz2}
\begin{document}
\begin{tikzcd}[ampersand replacement=\&]
A \arrow[rrrr, ""] \& \& \& \...
2
votes
0
answers
72
views
Quantikz: Move gategroup in foreground
Here is an small example of a quantum circuit (drawn with quantikz) that has 3 gategroups.
How can I move Charlie's gategroup (blue) to the front so that it is also on top of Bob's gategroup, like ...
3
votes
1
answer
205
views
How to display two quantum circuits side by side using quantikz?
I have two quantum circuits that I'd like to display side by side using the quantikz package in LaTeX. Here's the code for the two circuits:
\begin{quantikz}
& \ctrl{1} & \\
& \targ{...