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

Factor 2 error in roughness, numba version #1

Open
richard-ciesielski opened this issue Aug 23, 2023 · 2 comments
Open

Factor 2 error in roughness, numba version #1

richard-ciesielski opened this issue Aug 23, 2023 · 2 comments

Comments

@richard-ciesielski
Copy link

Hi Mika!

Da gibt es leider einen Fehler in der Matrix-Methode, den wir nun, nach vielen, vielen Jahren, die wir sie schon benutzen, auch endlich mal gefunden haben :)

Folgendes:
in mm_numba.py steht auf Zeilen 113 & 114:

rp = cmath.exp(-np.square(m) * s2h[j])
rm = cmath.exp(-np.square(p) * s2h[j])

Korrekt wäre:

rp = cmath.exp(-np.square(m) * s2h[j] / 2)
rm = cmath.exp(-np.square(p) * s2h[j] / 2)

In den Varianten mit "_pure_python" scheint es aber zu stimmen.

VG

@mikapfl
Copy link
Owner

mikapfl commented Apr 17, 2024

Möchtest du die maintenance von diesem Repo übernehmen oder so? Oder jemand anderes aus der PTB? Vielleicht macht ja auch jemand ein JOSS paper draus.

Ich könnte das natürlich korrigieren hier und vielleicht auch mal ein paar Tests schreiben, die das auch catchen würden, aber eigentlich ist es ja etwas Banane, wenn ich daran arbeite, obwohl ich gar nichts mehr mache mit XRR. Und auch schade, dass das etwas wenig sichtbar ist.

@richard-ciesielski
Copy link
Author

richard-ciesielski commented Apr 17, 2024 via email

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

No branches or pull requests

2 participants