Questions tagged [quantikz]
{quantikz} is a useful package for drawing quantum circuit diagrams.
18
questions
0
votes
0
answers
25
views
quantum circuits in tikz (quantikz) modifying of a command, or how to address nodes
Sorry I am not very familiar with this.
I am using quantikz package to draw quantum circuits.
There is an otherwise undocumented feature
\begin{tikzcd}
& \makeebit[-60][blue]{test} & \qw & ...
3
votes
1
answer
134
views
Drawing Two CNOT gates
I'm new to LaTeX and the tikz package in general.
Here is what I have so far:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{quantikz}
\begin{document}
\begin{center}
\begin{quantikz}
...
0
votes
0
answers
24
views
How to draw the following Bell measurement part in quantikz
How to draw the triangle on the circuit using quantikz.
1
vote
2
answers
162
views
How to draw simple wires in quantikz
I want to make a way to redirect a line of a quantum circuit to other.
The perfect idea that i have is to use something similar to,
\begin{quantikz}
& \gate{H} & \gate[swap]{} & \qw & \...
0
votes
1
answer
106
views
Customize bold and thin lines in quantikz
I need to write a circuit in thin lines where an operation is exception to this. For example
\begin{quantikz}[thin lines]
& \qw & \ctrl{1} & \qw\\
& \qw & \targ{} & \qw
\end{...
0
votes
1
answer
37
views
quantikz - moving the $\psi_0$ down like the other $\psi$
I would really appreciate if someone can help me move $psi_0 to the bottom like the rest of the $psi$. Below is the code I used.
\documentclass{report}
\usepackage{lscape}
\usepackage{dsfont}
\...
1
vote
1
answer
168
views
Quantum algorithm circuit with Quantikz
I'm trying with no results to use latex for drawing the famous “Deutsch algorithm”:.
For this use case, I've tried like every latex package for quantum circuits. The one with which I was able to ...
1
vote
1
answer
270
views
Quantikz gategroup not working
I am trying to re-write the Grover search algorithm using quantikz. I was trying to highlight the inner group of operations (basically the whole circuit except for first and last column) using \...
2
votes
2
answers
195
views
How to change \slice{} color on quantikz
Within quantikz package there's this possibility to put a single slice to separate two columns, through the command \slice{}.
By default it is colored in red and no standard command allows to change ...
0
votes
0
answers
90
views
Quantikz \ctrlbundle causing the document not to compile?
I'm trying to compile the following code:
\documentclass{article}
\usepackage{tikz-cd}
\usetikzlibrary{quantikz}
\begin{document}
\begin{quantikz}
\qwbundle[alternate]{} & \...
2
votes
2
answers
650
views
How to draw a circuit using quantikz?
How can one draw this complicated-looking circuit with quantikz?
Edit: Here is my attempt:
\documentclass[english]{revtex4}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{tikz}
\...
6
votes
1
answer
217
views
Draw measurement on a set of wires using quantikz
I want to draw this circuit (Bernstein-Vazirani Algorithm) using the quantikz package.
I could not draw the measurement on a set of wires like the figure. Here is my attempt:
\begin{center}
\begin{...
1
vote
0
answers
69
views
How can the alternate bundle be used with the meter in quantikz?
The quantikz package handles the [alternate] fine when it is placed before a normal gate.
\documentclass{standalone}
\usepackage{braket,tikz}
\usetikzlibrary{quantikz}
\begin{document}
\begin{...
3
votes
1
answer
141
views
What is the recommended way for typesetting the Fredkin gate in quantikz?
The obvious thing to try was
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{quantikz}
\begin{document}
\begin{quantikz}
& \ctrl{1} & \qw \\
& \swap{1} & \qw \\
&...
0
votes
1
answer
169
views
Quantum gates, an example
I'm unable to type this in XeTeX:
Any hints ?
0
votes
0
answers
35
views
French babel conflict with quantikz [duplicate]
I've noticed a strange behavior using the babel and quantikz packages. The following code:
\documentclass{standalone}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\...
2
votes
1
answer
786
views
Quantikz: equally sized gate boxes
I am composing a quantum circuit diagram using the LaTeX package Quantikz. My problem is that I want to have some gates equally sized, but don't manage to find a solution. Take this code:
\...
2
votes
1
answer
570
views
Quantikz: no wires in gates spanning multiple wires
I tried to use the following quantikz code:
\documentclass{article}
\usepackage{tikz}
\usepackage{mathtools}
\usetikzlibrary{quantikz}
\begin{document}
\def\myvdots{\ \vdots\ }
\begin{quantikz}
\...