On Mon, Sep 19, 2011 at 11:48 PM, Chris Smith <[email protected]> wrote:
>> 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?
>
> Does this work?
>
>    TensorProduct(Qubit(0,0), Qubit(0))

Yep, the * operator in is already being used for non-tensor products,
so you have to construct them using the TensorProduct class.  We
currently do not have a function that automatically does the
transformation:

 TensorProduct(Qubit(0,0), Qubit(0)) -> Qubit(0,0,0)

But it probably makes sense to have a function in the quantum
computing modules that does this.  It would be a good small project
for someone...

> /c
>
> --
> 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.

Reply via email to