Questions tagged [quantikz]

{quantikz} is a useful package for drawing quantum circuit diagrams.

Filter by
Sorted by
Tagged with
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 & ...
user avatar
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} ...
user avatar
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.
user avatar
  • 1
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 & \...
user avatar
  • 123
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{...
user avatar
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} \...
user avatar
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 ...
user avatar
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 \...
user avatar
  • 13
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 ...
user avatar
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]{} & \...
user avatar
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} \...
user avatar
  • 177
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{...
user avatar
  • 61
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{...
user avatar
  • 1,587
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 \\ &...
user avatar
  • 31
0 votes
1 answer
169 views

Quantum gates, an example

I'm unable to type this in XeTeX: Any hints ?
user avatar
  • 1,880
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} \...
user avatar
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: \...
user avatar
  • 135
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} \...
user avatar
  • 5,175