transition#
import qrules.transition
Find allowed transitions between an initial and final state.
- class ExecutionInfo(not_executed_node_rules: Dict[int, Set[str]] = _Nothing.NOTHING, violated_node_rules: Dict[int, Set[str]] = _Nothing.NOTHING, not_executed_edge_rules: Dict[int, Set[str]] = _Nothing.NOTHING, violated_edge_rules: Dict[int, Set[str]] = _Nothing.NOTHING)[source]#
Bases:
object
- extend(other_result: ExecutionInfo, intersect_violations: bool = False) None [source]#
- class ProblemSet(topology: Topology, initial_facts: InitialFacts, solving_settings: GraphSettings)[source]#
Bases:
object
Particle reaction problem set as a graph-like data structure.
- initial_facts: InitialFacts[source]#
Information about the initial and final state.
- solving_settings: GraphSettings[source]#
Solving settings, such as conservation rules and QN-domains.
- to_qn_problem_set() QNProblemSet [source]#
- class StateTransitionManager(initial_state: Sequence[str | Tuple[str, Sequence[float]]], final_state: Sequence[str | Tuple[str, Sequence[float]]], particle_db: ParticleCollection | None = None, allowed_intermediate_particles: List[str] | None = None, interaction_type_settings: Dict[InteractionType, Tuple[EdgeSettings, NodeSettings]] | None = None, formalism: str = 'helicity', topology_building: str = 'isobar', solving_mode: SolvingMode = SolvingMode.FAST, reload_pdg: bool = False, mass_conservation_factor: float | None = 3.0, max_angular_momentum: int = 1, max_spin_magnitude: float = 2.0, number_of_threads: int | None = None)[source]#
Bases:
object
Main handler for decay topologies.
See also
- interaction_determinators: List[InteractionDeterminator][source]#
Checks that are executed over selected conservation rules.
See also
{ref}`usage/reaction:Select interaction types`
- topologies: Tuple[Topology, ...][source]#
Topology
instances over which the STM propagates quantum numbers.
- set_allowed_intermediate_particles(name_patterns: Iterable[str] | str, regex: bool = False) None [source]#
- get_allowed_interaction_types() List[InteractionType] | Dict[int, List[InteractionType]] [source]#
- get_allowed_interaction_types(node_id: int) List[InteractionType]
- set_allowed_interaction_types(allowed_interaction_types: Iterable[InteractionType], node_id: int | None = None) None [source]#
- find_solutions(problem_sets: Dict[float, List[ProblemSet]]) ReactionInfo [source]#
Check for solutions for a specific set of interaction settings.
- class State(particle: Particle, spin_projection: SupportsFloat)[source]#
Bases:
object
- class ReactionInfo(transitions: Iterable[FrozenTransition[State, InteractionProperties]], formalism: str)[source]#
Bases:
object
Ordered collection of
StateTransition
instances.- transitions: Tuple[FrozenTransition[State, InteractionProperties], ...][source]#
- initial_state: FrozenDict[int, Particle][source]#
- final_state: FrozenDict[int, Particle][source]#
- get_intermediate_particles() ParticleCollection [source]#
Extract the names of the intermediate state particles.
- group_by_topology() Dict[Topology, List[FrozenTransition[State, InteractionProperties]]] [source]#