quantum_numbers

Deprecated since version 0.7.3: Use QRules and AmpForm instead

import expertsystem.reaction.quantum_numbers

Definitions used internally for type hints and signatures.

The expertsystem is strictly typed (enforced through mypy). This module bundles structures and definitions that don’t serve as data containers but only as type hints. EdgeQuantumNumbers and NodeQuantumNumbers are the main structures and serve as a bridge between the reaction.particle and the reaction module.

class EdgeQuantumNumbers[source]

Bases: object

Definition of quantum numbers for edges.

This class defines the types that are used in the conservation_rules, for instance in additive_quantum_number_rule. You can also create data classes (see attr.s) with data members that are typed as the data members of EdgeQuantumNumbers (see for example HelicityParityEdgeInput) and use them in conservation rules that satisfy the appropriate rule protocol (see ConservationRule, EdgeQNConservationRule).

__eq__(other)

Method generated by attrs for class EdgeQuantumNumbers.

baryon_number()
bottomness()
c_parity()
charge()
charmness()
electron_lepton_number()
g_parity()
isospin_magnitude()
isospin_projection()
mass()
muon_lepton_number()
parity()
pid()
spin_magnitude()
spin_projection()
strangeness()
tau_lepton_number()
topness()
width()
class InteractionProperties(l_magnitude=None, l_projection=None, s_magnitude=None, s_projection=None, parity_prefactor=None)[source]

Bases: object

Immutable data structure containing interaction properties.

Note

As opposed to NodeQuantumNumbers, the InteractionProperties class serves as an interface to the user.

__eq__(other)

Method generated by attrs for class InteractionProperties.

l_magnitude: Optional[int]
l_projection: Optional[int]
parity_prefactor: Optional[float]
s_magnitude: Optional[float]
s_projection: Optional[float]
class NodeQuantumNumbers[source]

Bases: object

Definition of quantum numbers for interaction nodes.

__eq__(other)

Method generated by attrs for class NodeQuantumNumbers.

l_magnitude()
l_projection()
parity_prefactor()
s_magnitude()
s_projection()
class Parity(value: int)[source]

Bases: object

__eq__(other: object)bool[source]

Return self==value.

value: int
arange(x_1: float, x_2: float, delta: float)Generator[float, None, None][source]
edge_qn_type(self)

Method generated by attrs for class EdgeQuantumNumbers.

node_qn_type(self)

Method generated by attrs for class NodeQuantumNumbers.