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

Expose atol and rtol arguments of the operator simplification #56

Open
mrossinek opened this issue Feb 6, 2025 · 0 comments
Open

Expose atol and rtol arguments of the operator simplification #56

mrossinek opened this issue Feb 6, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@mrossinek
Copy link
Member

What should we add?

During the backpropagate method, the observable gets simplified here:

observables_tmp[i], simplify_metadata = simplify_sparse_pauli_op(
observables_tmp[i]
)

That function has atol and rtol arguments which are inaccessible via the arguments of backpropagate method. This should be exposed to enable the end-user to customize these tolerances without having to modify the SparsePauliOp.atol and SparsePauliOp.rtol class-attributes.

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

1 participant