On Thu, Oct 6, 2011 at 12:13 PM, Hans Harhoff Andersen <[email protected]> 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
Yep you got it. > On Thu, Oct 6, 2011 at 8:54 PM, Hans Harhoff Andersen > <[email protected]> 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected] and [email protected] -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
