Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

half integer ell #21

Closed
gdurkin opened this issue Jan 21, 2016 · 5 comments
Closed

half integer ell #21

gdurkin opened this issue Jan 21, 2016 · 5 comments

Comments

@gdurkin
Copy link

gdurkin commented Jan 21, 2016

So I am using this code to generate Wigner rotation matrices quickly -- but when I rotate a normalized ket with the matrix derived in this way it produces a new ket with the wrong normalization IF the ket is a half integer spin ket, e.g. a qubit or spin 3/2 particle. (everything is fine when the state has integer spin, ell = 1,2,3,..)

am i missing the code for the half-integer case?

@moble
Copy link
Owner

moble commented Jan 21, 2016

You're not using this code to generate Wigner rotation matrices. Are you talking about this code?

@gdurkin
Copy link
Author

gdurkin commented Jan 21, 2016

Thanks for the quick reply, I was using:

import quaternion
import spherical_functions as sf

def QuaternionRotMat(ell,aa,bb,cc,dd):
indices = []
R = np.quaternion(aa,bb,cc,dd).normalized()
indices = np.array([[ell,mp,m]
for mp in np.arange(-ell, ell + 1) for m in
np.arange(-ell, ell+ 1)])
mat = sf.Wigner_D_element(R, indices).reshape((2_ell + 1, 2_ell + 1))
return mat

On 20 January 2016 at 17:04, Mike Boyle notifications@github.com wrote:

You're not using this code to generate Wigner rotation matrices. Are
you talking about this https://github.com/moble/spherical_functions
code?


Reply to this email directly or view it on GitHub
#21 (comment).

Dr. Gabriel A. Durkin,
Senior Research Scientist
SGT, Inc.
and
Quantum Artificial Intelligence Laboratory (QuAIL)
at
NASA Ames Research Center
Moffett Field
CA 94035
USA
Tel: +1 626 993 4132
Email: gabriel.durkin@qubit.org
Web: http://www.nas.nasa.gov/quantum/durkin.html
http://www.nasa.gov/centers/ames/research/qpl/durkin-index.html
NASA QFT 1.0 Conference: http://quantum.nasa.gov

@moble
Copy link
Owner

moble commented Jan 21, 2016

This issue was moved to moble/spherical_functions#17

@moble moble closed this as completed Jan 21, 2016
@moble
Copy link
Owner

moble commented Jan 21, 2016

This is an issue with the spherical_functions package, so I used the issue mover to move it there.

@gdurkin
Copy link
Author

gdurkin commented Jan 21, 2016

ok jolly good

On 20 January 2016 at 20:11, Mike Boyle notifications@github.com wrote:

This is an issue with the spherical_functions package, so I used the
issue mover https://github-issue-mover.appspot.com/ to move it there.


Reply to this email directly or view it on GitHub
#21 (comment).

Dr. Gabriel A. Durkin,
Senior Research Scientist
SGT, Inc.
and
Quantum Artificial Intelligence Laboratory (QuAIL)
at
NASA Ames Research Center
Moffett Field
CA 94035
USA
Tel: +1 626 993 4132
Email: gabriel.durkin@qubit.org
Web: http://www.nas.nasa.gov/quantum/durkin.html
http://www.nasa.gov/centers/ames/research/qpl/durkin-index.html
NASA QFT 1.0 Conference: http://quantum.nasa.gov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants