qrules#

to_three_body_decay(transitions: Iterable[FrozenTransition], min_ls: bool = False) ThreeBodyDecay[source]#
convert_transitions(transitions: Iterable[FrozenTransition]) tuple[FrozenTransition[Particle | State, LSCoupling | None], ...][source]#
filter_min_ls(transitions: Iterable[FrozenTransition[EdgeType, NodeType]]) tuple[FrozenTransition[EdgeType, NodeType], ...][source]#
load_particles() ParticleCollection[source]#
normalize_state_ids(obj: T) T[source]#
normalize_state_ids(obj: Iterable[T]) list[T]

Relabel the state IDs so that they lie in the range \([0, N)\).

class T#

Type variable for the input and output of normalize_state_ids().

alias of TypeVar(‘T’, ~qrules.transition.ReactionInfo, ~qrules.topology.FrozenTransition[~qrules.transition.State, ~qrules.quantum_numbers.InteractionProperties], ~qrules.topology.Topology)

permute_equal_final_states(obj: ReactionInfo) ReactionInfo[source]#
permute_equal_final_states(obj: Iterable[FrozenTransition[EdgeType, NodeType]]) list[FrozenTransition[EdgeType, NodeType]]
permute_equal_final_states(obj: FrozenTransition[EdgeType, NodeType]) list[FrozenTransition[EdgeType, NodeType]]