Hi,

On Thu, Oct 6, 2011 at 11:54 AM, Hans Harhoff Andersen
<hansharh...@gmail.com> wrote:
> Hi Sympy.
>
> I am trying to use circuit_plot to plot my quantum circuit. I can get
> CNOT and such gates working, but I can't get the Toffoli/CCNOT gate to
> plot. As I read the documentation I should be able to use mutiple
> control qubits on the CNOT gate by writing something like:
> gate.CNOT([2,1],0) to have qubit 1 and 2 control qubit 0. But this
> doesn't work with sympy 0.7.

The CNotGate in sympy is strictly a two qubit gate, taking only a
single control qubit.  What you want to use in the more general CGate:

g = CGate((0,1),X(2))

The plotting for that should work fine.

> Any hints or suggestions?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To post to this group, send email to sympy@googlegroups.com.
> To unsubscribe from this group, send email to 
> sympy+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/sympy?hl=en.
>
>



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgran...@calpoly.edu and elliso...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to