Amit,

I think I may have just answered this in a separate email, but you can use
the alpha, beta, and gamma parameters in the _apply_opperator_* method by
using the 'self' object passed, as that is the instance
of Rotation(alpha,beta,gamma) you created. You can use these parameters by
calling self.alpha, self.beta, and self.gamma.

Sean

On Sat, Feb 23, 2013 at 6:18 PM, Amit Jamadagni <[email protected]>wrote:

>
>
> defined the symbols a,b,g and part of the method
>         setting s to zero
>         looped it from -j to j+1
>                 r = Rotation.D(j,m,mp,a,b,g)
>
> Here in the loop I have used a,b,g so when qapply is applied it calls the
> function which has this loop and then prints out in terms of a,b,g.
>
>
> If I define the symbols alpha,beta and gamma , called the function and it
> does not depend on the parameters passed from the function below.i.e.,
> alpha , beta , gamma
>
> m = qapply(Rotation(alpha,beta,gamma)*JzKet(1,1)).doit()
>
> How do I relate the parameters passed to that in the loop of the method
>
> Introduced inputs in the function for a,b,g but that is not the way it is
> to be done so any ideas on this ?? Is this the way it to be done or any
> other method ?? Thanks
>
>
> On Sun, Feb 24, 2013 at 3:52 AM, Sean Vig <[email protected]> wrote:
>
>> Amit,
>>
>> There is JzOp which does take a parameter, and Jz is JzOp("J"). The
>> parameters for the Rotation operator are the Euler angles that define the
>> rotation. I'm not sure if you need to know anything about the angles or
>> what parameters are used to modify qapply. You should be able to look at
>> the Rotation operator test to figure out what the output should look like
>> for various parameters.
>>
>> Sean
>> On Feb 23, 2013 2:00 PM, "Amit" <[email protected]> wrote:
>>
>>> Hi,
>>>     I have written a method for qapply to act on rotation operator.The
>>> confusion I have is the other Spin Operators do not take in the
>>> parameters as Rotation does.For example
>>>
>>> qapply(Jz * JzKet(1,-1)).doit()
>>> −ℏ|1,−1⟩
>>>
>>> no parameters as such
>>>
>>> for rotation operator
>>>
>>> qapply(Rotation(alpha,beta,gamma) * JzKet(1,1))
>>>
>>> and for the method that i have written the output is dependent on
>>> alpha,beta and gamma.
>>>
>>> Now how do I use this general alpha beta gamma in the method that i
>>> have defined
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "sympy" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/sympy?hl=en.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>  --
>> You received this message because you are subscribed to the Google Groups
>> "sympy" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/sympy?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to