I am trying to add an EPR pair to a quantum circuit as an entry, and I need to select both of the entries using a bracket ({) that takes both of the entries. I am interested in that the output is something such as

Needed output

I am using Qcircuit in order to perform the task, I haven't been able to find how to do this.


You need the \gategroup command. The following code should do what you want:

\input{Qcircuit}% using  qcircuit version 2.5
\Qcircuit @C=1em @R=2em @!R {
& \lstick{\ket{\psi}} & \qw & \qw \\
& & \qw & \qw \\
& \lstick{\raisebox{2.2em}{$\ket{\beta_{00}}$\ }} & \qw & \qw 

It produces the output below:

Simple bracket example

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.