-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
RFC: Layerwise Richardson Extrapolation (LRE) #2224
Comments
I am done with the first draft of the RFC in case anyone else wants to take a look at it. Based on a conversation we had over Discord, @vprusso plans to review the RFC by next week. Note that this is only the RFC for LRE. Noise-aware folding from https://arxiv.org/abs/2401.12495 will have a separate RFC. |
@andreamari @natestemen I discussed the RFC with @vprusso this afternoon and both of us were unsure of how to design the default inputs for the main function. Would appreciate some feedback on this. The way I understand the results of the LRE paper, multiple noise-scaled versions of the input circuit could be created in 2 different ways. A user could provide:
If Option 1 is used, we would have to create a function to check we get a square sample matrix with the desired extrapolation order and the vectors of scale factors. In this case, we would also have to make sure the user does not provide us with a value for If Option 2 is used, the linked Jupyter notebook has 2 functions defined on lines 74 and 75 that will create a list of vectors of scale factors for the noise scaling function. Note that the arXiv upload uses the label Do we want to allow both options or prefer one over the other? |
Option 1 seems preferable to me since it seems to give more control to the user. If that isn't quite correct, let me know! So that I understand properly, the main concern is that it would be possible to pass in I think we should start with a single API. Start simple, add functionality later (if needed). |
I'm a little confused. My understanding of this technique as described in section II.B of the LRE paper is that after a collection of vectors are used to collect If this would be easier to explain on a call happy to do that, or on the google doc! |
I don't know if it helps, but there is a kind of condensed workflow of LRE at page 5 of the LRE paper in which it is perhaps more clear what are the input hyperparameters and what could be internally generated by Mitiq. In particular, there is a recommended choice of scale factor vectors in Eq. (21) that could be internally generated by Mitiq. A more general choice of scale factors is in principle possible but there are two constraints:
A way of finding a good balance between simplicity and flexibility, that we also applied for other techniques, is to have simple options in the high-level E.g., it would be nice if expert users had low-level utilities at their disposal such that they could manually choose arbitrary custom strategies. But it is probably ok to keep |
Link to the RFC: https://docs.google.com/document/d/1yAQI8K8ShGI4jdn8OtpBv-H0X5SvkFVXA7DKtVOqm-8/edit?usp=sharing
The text was updated successfully, but these errors were encountered: