I just checked that the problem persists even in newest git version.

Also I have a feature request for circuit_plot. It would be very nice
to have a way of making circuit plot display unfilled circles for
controls which are triggered on qubit being in 0 state instead of
state 1 (cf. Nielsen and Chuang book for examples of this eg. page 193
(fig. 4.16)).
Without this feature you have to include a lot of NOTs in your circuit
digram which makes it ugly and unreadable.

Best regards, Hans

On Oct 6, 9:13 pm, Hans Harhoff Andersen <hansharh...@gmail.com>
wrote:
> I suspect that this is a bug since I can get it to work by writing:
> gate.CGate((2,1),gate.X(0))
>
> When I do
> gate.CNOT((2,1),0)
> I get:
> TypeError: List indices must be integers, not Tuple
>
> On Thu, Oct 6, 2011 at 8:54 PM, 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.
>
> > 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.

Reply via email to