[sage-support] Re: Semisimple Lie algebra generators in Sage? (physics edition)

2020-06-01 Thread 'Travis Scrimshaw' via sage-support
Hi Emil,
   Kind of. So what you are looking for is the compact real form I think:

sage: L = LieAlgebra(QQ, cartan_type=['A',1], representation="compact real")
sage: list(L.basis())
[
[ 0  1]  [ i  0]  [0 i]
[-1  0], [ 0 -i], [i 0]
]
sage: L = LieAlgebra(QQ, cartan_type=['A',2], representation="compact real")
sage: list(L.basis())
[
[ 0  1  0]  [ 0  0  1]  [ 0  0  0]  [ i  0  0]  [0 i 0]  [0 0 i]
[-1  0  0]  [ 0  0  0]  [ 0  0  1]  [ 0  0  0]  [i 0 0]  [0 0 0]
[ 0  0  0], [-1  0  0], [ 0 -1  0], [ 0  0 -i], [0 0 0], [i 0 0],

[ 0  0  0]  [0 0 0]
[ 0  i  0]  [0 0 i]
[ 0  0 -i], [0 i 0]
]

Now the i in the above is just a little bit of extra processing as it is 
considered as a basis in QQ, not QQ[i]. You can of couse look at the Lie 
algebras over the corresponding field extension to get the elements you 
want. Now this doesn't give you the generators for the Lie groups (a 
priori), and it is not implemented for E_8 since that is not given as a 
matrix Lie algebra (although that could be fixed by using the adjoint 
representation). Also, it is not easy to extract the matrix (at least, I 
didn't need it for what I wanted to compute):

sage: L = LieAlgebra(QQ, cartan_type=['A',1], representation="compact real")
sage: M = list(L.basis())[-1]
sage: M
[0 i]
[i 0]
sage: (M._real, M._imag)
(
[0 0]  [0 1]
[0 0], [1 0]
)

Implementing getting the matrix would make a nice improvement to Sage.

Best,
Travis


On Thursday, May 28, 2020 at 9:52:14 AM UTC+10, Emil Kozuch wrote:
>
> I am sorry if this question has been asked before.
>
> Is there a way to get the fundamental Lie algebra generators in sage 
> (those that physicists use, eq. the Paule matrices, Gellmann matrices and 
> so forth)?
> The only thing I can find in the documentation is the generators in the 
> Chevalley basis, but they do not satisfy the orthogonality condition 
> tr(T^aT^b)=\delta_{ab}.
>
> I am looking for the generators for all the semisimple Lie groups 
> (A_n,B_n,C_n,D_n,G_2,F_4,E_6,E_7,E_8).
> The reason i need this is because I am trying to verify some calculations 
> done with the birdtrack method for Lie algebras.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/b0196d4f-2920-4f69-8926-134b6cda94aa%40googlegroups.com.


[sage-support] Re: Multiprocessing for Tensors is not working for Macintosh. (SageMath 9.0)

2020-06-01 Thread Eric Gourgoulhon
Le dimanche 31 mai 2020 02:33:06 UTC+2, Alan Stafford a écrit :
>
> I have just updated to SageMath 9.1 and updated my OS. I see that ncpus.py 
> has been changed. 
> I have tested the multiprocessing with the file enclosed above and others 
> and it is  working. Thank you all for fixing this.
>

Thanks for this good news. I am happy to see that this long standing issue 
with macOS is fixed!

Best wishes,

Eric.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/69c83dfe-cdca-4f92-aba5-3dd620e30e06%40googlegroups.com.