Skip to content

fuzzy logic on emulation target times - #258

Merged
a-quelle-pasqal merged 4 commits into
mainfrom
aq/remove_duplicate_eval_times
Sep 9, 2026
Merged

fuzzy logic on emulation target times#258
a-quelle-pasqal merged 4 commits into
mainfrom
aq/remove_duplicate_eval_times

Conversation

@a-quelle-pasqal

@a-quelle-pasqal a-quelle-pasqal commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

When observables have evaluation times that are within 1e-12 (the current pulser tolerance) of eachother or the multiples of dt then the evaluation times of the Statistics observable will fall within this tolerance and cause an error. Solve the issue by merging the target_times in the pulser adapter using a fuzzy logic with the above tolerance. Since evaluation times of observables are computed using the same tolerance, this will not cause any observables to be dropped (though they might be reported at a time that is within 1e-12 of the originally requested time).

@a-quelle-pasqal a-quelle-pasqal changed the title fuzzy logic fuzzy logic on emulation target times Sep 4, 2026
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-09 11:59 UTC

@a-quelle-pasqal
a-quelle-pasqal marked this pull request as ready for review September 4, 2026 14:21
Comment thread test/emu_base/test_adapter.py Outdated

@murogrande murogrande left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small comment regarding a test, apart from this everything looks great

murogrande
murogrande previously approved these changes Sep 8, 2026

@murogrande murogrande left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@elmerhej elmerhej left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@a-quelle-pasqal
a-quelle-pasqal merged commit d868911 into main Sep 9, 2026
10 checks passed
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

Successfully merging this pull request may close these issues.

3 participants