--
You received this message because you are subscribed to the Google Groups "sympy" group.
To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to sympy+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
Vinzent
> I am trying to use the spin classes from physics.quantum. For the moment I
> am working with a two-state system (spin 1/2). Is there a class dedicated to
> 1/2 spins (as opposed to J?Ket where I must write zplus=JzKet(1/2,1/2))?
We don't currently have any shorthands for the spin 1/2 case although
they would probably make sense to have.
> My main concern for the moment is the printing. I would like to use both
> JzKet and JxKet and they are both printed as |1/2,+-1/2>.
Yes, especially in the latex rendering it would make sense to add a
subscript "x" or "z" to this notation.
> I suppose that there is a nice solution where I can change only the label (I
> have no knowledge of how the printing system works). If this is the case I
> would like to find it, but still I prefer a cleaner solution where the class
> I use has done the change of label for me.
The print methods for these things are in the spin.py module and are
pretty self explanatory. You may also have to dig a bit deeper in the
qexpr.py and state.py modules to see how the base classes print.
Cheers,
Brian
> Regards
> Stefan Krastanov
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To post to this group, send email to sy...@googlegroups.com.
> To unsubscribe from this group, send email to
> sympy+un...@googlegroups.com.
> 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
bgra...@calpoly.edu and elli...@gmail.com