FeynKit · latest
On this page

NumeratorGrouping

symbolica.community.hepkit Class

NumeratorGrouping(mode: str, *, numerical_sample_seed: int = 3, number_of_numerical_samples: int = 5, differentiate_particle_masses_only: bool = True, fully_numerical_substitution: bool = False, check_canonical_numerator: bool = False, symmetric_polarizations: bool = False)

Choose cross-diagram numerator grouping.

Examples

from symbolica import S, E
from symbolica.community import hepkit as hep
hep.NumeratorGrouping("identical", number_of_numerical_samples=7)

Parameters

mode {"none", "identical", "up_to_sign", "up_to_scalar"}

Disable grouping, or compare numerators exactly, up to a sign, or up to a scalar factor. To remove diagrams with vanishing color without comparing numerators, pass filter_zero_color=True to generation.

numerical_sample_seed int, optional

Deterministic seed used to choose numerical substitution values.

number_of_numerical_samples int, optional

Number of independent substitutions used to compare numerators.

differentiate_particle_masses_only bool, optional

Treat internal species with equal mass and spin as interchangeable.

fully_numerical_substitution bool, optional

Substitute scalar parameters as well as nonscalar indeterminates.

check_canonical_numerator bool, optional

Try an exact canonical comparison before numerical sampling.

symmetric_polarizations bool, optional

Reuse wavefunction samples across the two sides of a sewn external state.

Constructor

#

Choose cross-diagram numerator grouping.

Examples

Using the setup in the NumeratorGrouping class example:

hep.NumeratorGrouping("identical", number_of_numerical_samples=7)

Parameters

NameTypeDefaultDescription
modestr—

Disable grouping, or compare numerators exactly, up to a sign, or up to a scalar factor. To remove diagrams with vanishing color without comparing numerators, pass filter_zero_color=True to generation.

numerical_sample_seedint3

Deterministic seed used to choose numerical substitution values.

number_of_numerical_samplesint5

Number of independent substitutions used to compare numerators.

differentiate_particle_masses_onlyboolTrue

Treat internal species with equal mass and spin as interchangeable.

fully_numerical_substitutionboolFalse

Substitute scalar parameters as well as nonscalar indeterminates.

check_canonical_numeratorboolFalse

Try an exact canonical comparison before numerical sampling.

symmetric_polarizationsboolFalse

Reuse wavefunction samples across the two sides of a sewn external state.