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

Support Executor class in LRE #2668

Open
natestemen opened this issue Feb 11, 2025 · 0 comments · May be fixed by #2676
Open

Support Executor class in LRE #2668

natestemen opened this issue Feb 11, 2025 · 0 comments · May be fixed by #2676
Assignees
Labels
executors lre Layerwise Richardson Extrapolation
Milestone

Comments

@natestemen
Copy link
Member

LRE functionality currently assumes the user is passing a pure python function. We should ensure users can pass an Executor class in all of the main entry points in order to be consistent with other techniques.

mitiq/mitiq/lre/lre.py

Lines 23 to 25 in f404e28

def execute_with_lre(
input_circuit: QPROGRAM,
executor: Callable[[QPROGRAM], float],

@natestemen natestemen added executors lre Layerwise Richardson Extrapolation labels Feb 11, 2025
@natestemen natestemen changed the title Support Executor in LRE Support Executor class in LRE Feb 11, 2025
@purva-thakre purva-thakre self-assigned this Feb 11, 2025
@purva-thakre purva-thakre added this to the 0.44.0 milestone Feb 11, 2025
@purva-thakre purva-thakre assigned bdg221 and unassigned purva-thakre Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
executors lre Layerwise Richardson Extrapolation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants