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

Real Wilson coefficients become complex after running #40

Open
peterstangl opened this issue Feb 2, 2020 · 1 comment
Open

Real Wilson coefficients become complex after running #40

peterstangl opened this issue Feb 2, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@peterstangl
Copy link
Collaborator

Wilson coefficients of hermitian operators that should be real still become complex numbers after running. As far as I see, this is only a numerical issue and the imaginary parts are extremely small and basically zero.

However, the fact that the type of these coefficients becomes complex has the effect that some observables in flavio become complex numbers, too. In particular, the observables defined in https://github.com/flav-io/flavio/blob/master/flavio/physics/scattering/ee_ww.py in terms of linear combinations of Wilson coefficients become complex numbers.
Since the ee->WW scattering observables are used in smelli, finally also the global likelihood in smelli becomes a complex number.

Possible solutions:

The first solution is in some sense a bit cleaner, the second one is probably much easier to implement (and maybe faster since there is no need to check which Wilson coefficients should be real).
@DavidMStraub what do you think?

@DavidMStraub
Copy link
Member

I agree 100%. It's indeed the concern about speed why we didn't implement chopping unphysical imaginary parts, but one should consider it. (BTW this is currently not even checked on validation, see wcxf/wcxf-python#10 which should probably be moved here.)

But indeed independently of a solution in wilson, this should be handled in flavio by discarding the imaginary part. This is done e.g. for Higgs, see e.g. https://github.com/flav-io/flavio/blob/master/flavio/physics/higgs/production.py#L19 etc. That .real is missing in ee_ww is a mistake. (Naming a variable np as well 😉)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants