combinatorics#
import qrules.combinatorics
Perform permutations on the edges of a MutableTransition
.
In a MutableTransition
, the edges represent quantum states, while the nodes represent
interactions. This module provides tools to permutate, modify or extract these edge and
node properties.
- StateDefinition#
Particle name, optionally with a list of spin projections.
- InitialFacts#
A
Transition
with only initial and final state information.alias of
MutableTransition
[Tuple
[Particle
,float
],InteractionProperties
]
- create_initial_facts(topology: Topology, initial_state: Sequence[StateDefinition], final_state: Sequence[StateDefinition], particle_db: ParticleCollection) list[InitialFacts] [source]#
- permutate_topology_kinematically(topology: Topology, initial_state: list[StateDefinition], final_state: list[StateDefinition], final_state_groupings: list[list[list[str]]] | list[list[str]] | list[str] | None = None) list[Topology] [source]#
- match_external_edges(graphs: list[MutableTransition[Tuple[Particle, float], InteractionProperties]]) None [source]#
- perform_external_edge_identical_particle_combinatorics(graph: MutableTransition) list[MutableTransition] [source]#
Create combinatorics clones of the
MutableTransition
.In case of identical particles in the initial or final state. Only identical particles, which do not enter or exit the same node allow for combinatorics!