0

My following code doesn't work and I really don't get why :

    %% Based on a TeXnicCenter-Template by Tino Weinkauf.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% HEADER
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper,twoside,10pt]{article}
\usepackage[margin=1in]{geometry}
% Alternative Options:
%   Paper Size: a4paper / a5paper / b5paper / letterpaper / legalpaper / executivepaper
% Duplex: oneside / twoside
% Base Font Size: 10pt / 11pt / 12pt

\usepackage{appendix}
%% Language %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[francais]{babel} %francais, polish, spanish, ...
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{xcolor}
\usepackage{url}
\usepackage{hyperref}
\usepackage[braket,qm]{qcircuit}
\usepackage{tcolorbox}

%% Packages for Graphics & Figures %%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{graphicx,subcaption,caption, placeins} %%For loading graphic files
\usepackage{array, makecell}


%% Math Packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsmath, amsthm, amsfonts, amssymb, bbold}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% DOCUMENT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\section{test}

\begin{figure}[h!]
\centerline{
\Qcircuit @C=1.7em @R=1.7em {
& & & \ctrl{3} & \qw & \qw & \qw & \qw & \\
& \rho_d &  & \qw & \ctrl{2} & \ctrl{4} & \qw & \qw & \\
& & & \qw & \qw & \qw & \ctrl{3} & \qw & \\
& & & \targ & \targ & \qw & \qw & \qw &\\
& & & & & & & & \rho_a \\
& & & \qw & \qw & \targ & \targ & \qw & 
\gategroup{1}{3}{3}{3}{.7em}{\{} 
}}
\end{figure}

\bibliographystyle{plain}
\bibliography{biblio}
\end{document}

Because for example this qcircuit code works and for me I am doing a very similar thing...

\begin{figure}[h!]
\centerline{
\Qcircuit @C=1.7em @R=1.7em {
&  & & \qw & \qw & \qw & \qw & \targ & \qw \\
&  & & \targ & \qw & \qw & \qw & \qw & \qw \\
& \push{\rho_{da}} & & \qw & \qw & \targ & \qw & \qw & \qw \\
&  & & \ctrl{-2} & \gate{X} & \ctrl{-1} & \gate{X} & \ctrl{-3} & \qw \\
&  & & \ctrl{-3} & \qw & \ctrl{-2} & \gate{X} & \ctrl{-4} & \qw
\gategroup{1}{3}{5}{3}{.7em}{\{}
}}
\end{figure}

Could anyone help me to solve this problem ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.