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}
\usetikzlibrary{quantikz2}
the problem is that this does not work on my computer. Any idea on what could be the problem? What do I need to do?
I am using texlive, latexmk.
quantikz2
is quite new (AFAIK first release 2023). So I guess: You need either a manual installation ofquantikz
(and maybe a manual update of several other parts, which can be a hard job to do) or a vanilla TeX Live installation.quantikz
instead ofquantikz2
. This should be available also as part of older TeX distributions. But we don't know if this would be an option, because you have not shown how you've usedquantikz
.! Package tikz Error: I did not find the tikz library 'quantikz2'. I looked for files named tikzlibraryquantikz2.code.tex and pgflibraryquantikz2.code.tex, bu t neither could be found in the current texmf trees.. See the tikz package documentation for explanation. Type H <return> for immediate help. ... l.8 \usetikzlibrary{quantikz2} ?
I have downloaded those files, but I am not sure where to place them.