TransWikia.com

What is the recommended way for typesetting the Fredkin gate in quantikz?

TeX - LaTeX Asked by Calle on January 15, 2021

The obvious thing to try was

documentclass{article}

usepackage{tikz}
usetikzlibrary{quantikz}

begin{document}

begin{quantikz}
  & ctrl{1} & qw 
  & swap{1} & qw 
  & targX{} & qw
end{quantikz}

end{document}

but this leaves a little unwanted space in the vertical wire:

enter image description here

This can be fixed by replacing ctrl{1} by ctrl{2}, but the lower vertical wire then looks just slightly thicker than the upper. (It’s pretty good, though.) Is there another way to do this?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP