epraya.Jchaframe#

Jchaframe(Ham, Exp)#

Adds the rotations for the constants g, A, Q and D, described by the conditions gframe, Aframe, Qframe and D.frame.

Parameters:
  • Ham (Class) – Container of the Hamiltonian parameters.

  • Exp (Class) – Container of the Experimental conditions.

Returns:

Ham (Class) – Container of the Hamiltonian parameters, with the corrected values.

Example

>>> import epraya as epr
>>> Ham,Exp,_=epr.Jstart()
>>> Ham.g=[2.0003,2.5,2.5]
>>> Ham.Q=[0.5,10.0,0]
>>> print(Ham)
>>> Ham=epr.Jchaframe(Ham,Exp)
>>> print(Ham)
JHval(S=0.5, g=[2.0003, 2.5, 2.5], I=0.0, L=0.0, A=0.0,
Q=[0.5, 10.0, 0], D=Array([0, 0], dtype=int32),
Bk2=[0, 0, 0, 0, 0], Bk4=[0, 0, 0, 0, 0, 0, 0, 0, 0],
Bk6=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], lc=0.0,
Hpp=Array([0, 1], dtype=int32), eta=0.5, weight=0.0)
JHval(S=0.5, g=Array([[ 2.1690652 ,  0.16222095,  0.20332736],
[ 0.16222097,  2.7222438 , -0.09966913],
[ 0.20332736, -0.09966913,  2.3750749 ]], dtype=float32),
I=0.0, L=0.0, A=Array([[0., 0., 0.],[0., 0., 0.],[0., 0., 0.]],
dtype=float32), Q=Array([[ 0.5,  0. ,  0. ],[ 0. , 10. ,  0. ],
[ 0. ,  0. ,  0. ]], dtype=float32), D=Array([[0., 0., 0.],
[0., 0., 0.],[0., 0., 0.]], dtype=float32), Bk2=[0, 0, 0, 0, 0],
Bk4=[0, 0, 0, 0, 0, 0, 0, 0, 0],
Bk6=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], lc=0.0,
Hpp=Array([0, 1], dtype=int32), eta=0.5, weight=0.0)