Skip to content

Enable implementation of prune_error_budget in custom estimation API#2737

Merged
msoeken merged 2 commits intomainfrom
msoeken/estimate-custom-prune-error-budget
Oct 13, 2025
Merged

Enable implementation of prune_error_budget in custom estimation API#2737
msoeken merged 2 commits intomainfrom
msoeken/estimate-custom-prune-error-budget

Conversation

@msoeken
Copy link
Member

@msoeken msoeken commented Oct 10, 2025

This PR exposes the prune_error_budget function from the Overhead to the custom Python classes that can be used with estimate_custom. The function does not need to be implemented. If it is provided, it can change the budget value to tune the error budget based on the algorithm input. The signature is changed to return a Result in order to catch possible Python errors and a new test cases is added to check the behavior in presence and absence of this function.

@msoeken msoeken added this pull request to the merge queue Oct 13, 2025
Merged via the queue into main with commit 2cd128d Oct 13, 2025
18 checks passed
@msoeken msoeken deleted the msoeken/estimate-custom-prune-error-budget branch October 13, 2025 19:24
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.

2 participants