Trees | Indices | Help |
---|
|
object --+ | dict --+ | ColorBasis
The ColorBasis object is a dictionary created from an amplitude. Keys are the different color structures present in the amplitude. Values have the format (diag,(index c1, index c2,...), coeff, is_imaginary, Nc_power) where diag is the diagram index, (index c1, index c2,...) the list of indices corresponding to the chose color parts for each vertex in the diagram, coeff the corresponding coefficient (a fraction), is_imaginary if this contribution is real or complex, and Nc_power the Nc power.
|
|||
ColorBasisError Exception raised if an error occurs in the definition or the execution of a color basis object. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
new empty dictionary |
|
||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
|
|
|||
_canonical_dict =
|
|||
_list_color_dict =
|
|||
Inherited from |
|
|||
Inherited from |
|
Update repl_dict, res_dict and min_index for normal vertices. Returns the min_index reached and the result dictionary in a tuple. If the id0_rep list is not None, perform the requested replacement on the last leg number before going further. |
Update the current color basis by adding information from the colorize dictionary (produced by the colorize routine) associated to diagram with index index. Keep track of simplification results for maximal optimization. |
Returns a list of colorize dict for all diagrams in amplitude. Also update the _list_color_dict object accordingly |
Build the a color basis object using information contained in amplitude (otherwise use info from _list_color_dict). Returns a list of color |
Initialize a new color basis object, either empty or filled (0 or 1 arguments). If one arguments is given, it's interpreted as an amplitude.
|
Returns a nicely formatted string for display
|
Return the color_flow_string (i.e., composed only of T's with 2 indices) associated to my_color_string. Take a list of the external leg color octet state indices as an input. Returns only the leading N contribution! |
Returns the color flow decomposition of the current basis, i.e. a list of dictionaries (one per color basis entry) with keys corresponding to external leg numbers and values tuples containing two color indices ( (0,0) for singlets, (X,0) for triplet, (0,X) for antitriplet and (X,Y) for octets). Other color representations are not yet supported here (an error is raised). Needs a dictionary with keys being external leg numbers, and value the corresponding color representation. |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Jul 24 08:02:10 2012 | http://epydoc.sourceforge.net |