Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order of final_state can result in swapped decay products #176

Closed
redeboer opened this issue May 10, 2022 · 0 comments · Fixed by #217 or #218
Closed

Order of final_state can result in swapped decay products #176

redeboer opened this issue May 10, 2022 · 0 comments · Fixed by #217 or #218
Assignees
Labels
🐛 Bug Something isn't working
Milestone

Comments

@redeboer
Copy link
Member

With QRules v0.9.7:

pip install qrules==0.9.7
import graphviz
import qrules  # v0.9.7

result = qrules.generate_transitions(
    initial_state=("J/psi(1S)", [-1, +1]),
    final_state=["Sigma+", "K0", "p~"],
    allowed_intermediate_particles=["N(1440)"],
    allowed_interaction_types="strong",
)
dot = qrules.io.asdot(result, collapse_graphs=True)
graphviz.Source(dot)

With QRules v0.8.2:

pip install qrules==0.8.2
import graphviz
import qrules

result = qrules.generate_transitions(
    initial_state=("J/psi(1S)", [-1, +1]),
    final_state=["p~", "Sigma+", "K0"],
    allowed_intermediate_particles=["N(1440)"],
    allowed_interaction_types="strong",
)
dot = qrules.io.asdot(result, collapse_graphs=True)
graphviz.Source(dot)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
1 participant