def create_representation(self): """create representation""" p0 = aloha_lib.DVariable('P%s_0' % self.particle) p1 = aloha_lib.DVariable('P%s_1' % self.particle) p2 = aloha_lib.DVariable('P%s_2' % self.particle) p3 = aloha_lib.DVariable('P%s_3' % self.particle) gamma = { (0, 0): 0, (0, 1): 0, (0, 2): p0 - p3, (0, 3): -1 * p1 + 1j * p2, (1, 0): 0, (1, 1): 0, (1, 2): -1 * p1 - 1j * p2, (1, 3): p0 + p3, (2, 0): p0 + p3, (2, 1): p1 - 1j * p2, (2, 2): 0, (2, 3): 0, (3, 0): p1 + 1j * p2, (3, 1): p0 - p3, (3, 2): 0, (3, 3): 0 } self.representation = aloha_lib.LorentzObjectRepresentation( gamma, self.lorentz_ind, self.spin_ind)
def create_representation(self): self.sub0 = aloha_lib.DVariable('P%s_0' % self.particle) self.sub1 = aloha_lib.DVariable('P%s_1' % self.particle) self.sub2 = aloha_lib.DVariable('P%s_2' % self.particle) self.sub3 = aloha_lib.DVariable('P%s_3' % self.particle) self.representation= aloha_lib.LorentzObjectRepresentation( {(0,): self.sub0, (1,): self.sub1, \ (2,): self.sub2, (3,): self.sub3}, self.lorentz_ind, [])
def create_representation(self): self.sub0 = aloha_lib.Variable('F%s_1' % self.particle) self.sub1 = aloha_lib.Variable('F%s_2' % self.particle) self.sub2 = aloha_lib.Variable('F%s_3' % self.particle) self.sub3 = aloha_lib.Variable('F%s_4' % self.particle) self.representation= aloha_lib.LorentzObjectRepresentation( {(0,): self.sub0, (1,): self.sub1, \ (2,): self.sub2, (3,): self.sub3}, [],self.spin_ind)
def create_representation(self): self.sub00 = aloha_lib.Variable('T%s_1' % self.particle) self.sub01 = aloha_lib.Variable('T%s_2' % self.particle) self.sub02 = aloha_lib.Variable('T%s_3' % self.particle) self.sub03 = aloha_lib.Variable('T%s_4' % self.particle) self.sub10 = aloha_lib.Variable('T%s_5' % self.particle) self.sub11 = aloha_lib.Variable('T%s_6' % self.particle) self.sub12 = aloha_lib.Variable('T%s_7' % self.particle) self.sub13 = aloha_lib.Variable('T%s_8' % self.particle) self.sub20 = aloha_lib.Variable('T%s_9' % self.particle) self.sub21 = aloha_lib.Variable('T%s_10' % self.particle) self.sub22 = aloha_lib.Variable('T%s_11' % self.particle) self.sub23 = aloha_lib.Variable('T%s_12' % self.particle) self.sub30 = aloha_lib.Variable('T%s_13' % self.particle) self.sub31 = aloha_lib.Variable('T%s_14' % self.particle) self.sub32 = aloha_lib.Variable('T%s_15' % self.particle) self.sub33 = aloha_lib.Variable('T%s_16' % self.particle) rep = { (0, 0): self.sub00, (0, 1): self.sub01, (0, 2): self.sub02, (0, 3): self.sub03, (1, 0): self.sub10, (1, 1): self.sub11, (1, 2): self.sub12, (1, 3): self.sub13, (2, 0): self.sub20, (2, 1): self.sub21, (2, 2): self.sub22, (2, 3): self.sub23, (3, 0): self.sub30, (3, 1): self.sub31, (3, 2): self.sub32, (3, 3): self.sub33 } self.representation= aloha_lib.LorentzObjectRepresentation( rep, \ self.lorentz_ind, [])
def create_representation(self): if not hasattr(self, 'epsilon'): # init all element to zero epsilon = dict( ((l1, l2, l3, l4), 0) for l1 in range(4) \ for l2 in range(4) \ for l3 in range(4) \ for l4 in range(4)) # update non trivial one epsilon.update(dict( ((l1, l2, l3, l4), self.give_parity((l1,l2,l3,l4))) for l1 in range(4) \ for l2 in range(4) if l2 != l1\ for l3 in range(4) if l3 not in [l1,l2]\ for l4 in range(4) if l4 not in [l1,l2,l3])) L_Epsilon.epsilon = epsilon self.representation = aloha_lib.LorentzObjectRepresentation( self.epsilon, self.lorentz_ind, self.spin_ind)
def create_representation(self): self.representation = aloha_lib.LorentzObjectRepresentation( self.Cmetrix, self.lorentz_ind, self.spin_ind)
def create_representation(self): rep = aloha_lib.Variable('S%s_1' % self.particle) self.representation = aloha_lib.LorentzObjectRepresentation( rep, [], [])
def create_representation(self): param = aloha_lib.Variable(self.varname, aloha_lib.ExtVariable) self.representation = aloha_lib.LorentzObjectRepresentation( param, [], [])
def create_representation(self): width = aloha_lib.DVariable('W%s' % self.particle) self.representation = aloha_lib.LorentzObjectRepresentation( width, self.lorentz_ind, self.spin_ind)
def create_representation(self): mass = aloha_lib.DVariable('OM%s' % self.particle) self.representation = aloha_lib.LorentzObjectRepresentation( mass, self.lorentz_ind, self.spin_ind)
def create_representation(self): var = aloha_lib.Variable('FCT%s' % self.fctid) self.representation = aloha_lib.LorentzObjectRepresentation( var, self.lorentz_ind, self.spin_ind)
def create_representation(self): coup = aloha_lib.Variable('COUP%s' % self.nb) self.representation = aloha_lib.LorentzObjectRepresentation( coup, self.lorentz_ind, self.spin_ind)