Ok. So I found the paper that was written by Addison Cugini (http:// digitalcommons.calpoly.edu/physsp/38/) which was helpful. Lowering my levels of ambition to getting the operators and kets that I was able to construct to represent in the default (z-basis). This is supposedly done by the represent function ie. represent(myoperator). (I am still not sure how to go the other way).
my issue is now that this fails for the construction that I have made. I have a collection of three qubits: |000> which I for practical reasons wrote as |00>*|0> ie. Qubit(0,0)*Qubit(0) but qapply doesn't understand that I want the tensor product between the qubits. Is there a way to tell sympy to treat the * between the qubits as a tensorproduct? -Hans On 19 Sep., 21:03, Hans Harhoff Andersen <[email protected]> wrote: > Hi. > I have been trying to figure out how to use sympy.physics.quantum > specifically the qubit/gate part. I have gotten qubits working and I > have applied various operators to them (with some guesswork/trial-and- > error), but I can't figure out how to define my own operators. I'd > like to provide a matrix which should then become an operator/gate. > How do I do this. I have tried using gate.UGate but I complains that > my matrices do not have is_integer method. > > Is there a good place for examples/documentation of how to use the > quantum package in general and qubits in specific? > > Best regards, > Hans -- 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.
