Trees | Indices | Help |
---|
|
object --+ | list --+ | ColorString
A list of ColorObjects with an implicit multiplication between, together with a Fraction coefficient and a tag to indicate if the coefficient is real or imaginary. ColorStrings can be simplified, by simplifying their elements.
|
|||
new list |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
coeff = Fraction(1, 1)
|
|||
is_imaginary = False
|
|||
Nc_power = 0
|
|||
canonical = None hash(x) |
|||
immutable = None hash(x) |
|||
Inherited from |
|
|||
Inherited from |
|
Overrides norm list constructor to implement easy modification of coeff, is_imaginary and Nc_power
|
Returns a standard string representation based on color object representations
|
Returns a standard string representation based on color object representations
|
Add string other to current string. ONLY USE WITH SIMILAR STRINGS! |
Returns an immutable object summarizing the color structure of the current color string. Format is ((name1,indices1),...) where name is the class name of the color object and indices a tuple corresponding to its indices. An immutable object, in Python, is built on tuples, strings and numbers, i.e. objects which cannot be modified. Their crucial property is that they can be used as dictionary keys! |
Replace current indices following the rules listed in the replacement dictionary written as {old_index:new_index,...}, does that for ALL color objects. |
Returns a tuple, with the first entry being the string coefficient with Nc replaced (by default by 3), and the second one being True or False if the coefficient is imaginary or not. Raise an error if there are still non trivial color objects. |
Force a specific order for the summation indices in case we have Clebsch Gordan coefficients K6's or K6Bar's This is necessary to correctly recognize later on the equivalent color strings (otherwise the color basis is degenerate) The new ordering is as follow:
|
Returns the canonical representation of the immutable representation (i.e., first index is 1, ...). This allow for an easy comparison of two color strings, i.e. independently of the actual index names (only relative positions matter). Also returns the conversion dictionary. If no immutable representation is given, use the one build from self. |
Check if two color strings are equivalent by checking if their canonical representations and the coefficients are equal.
|
Logical opposite of ea
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Jul 24 08:02:10 2012 | http://epydoc.sourceforge.net |