-
Notifications
You must be signed in to change notification settings - Fork 82
Add FFT QSP #1078
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
Add FFT QSP #1078
Conversation
Co-authored-by: Tanuj Khattar <[email protected]>
|
@Epsilon1024 could you rebase on main and squash all the commits so far? there's a lot of legacy commits, it's hard to keep track of new changes to review. |
|
@anurudhp You can just go to files changed and it shows only two new files?
|
|
Right that's true. I meant more for reviewing incremental changes, but I guess I can just look from the last two commits, so no issue. |
|
Hi all,
Cheers, Christoph |
anurudhp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice. Left a first round of comments.
Could you investigate what the best tolerance values are for the current implementation? I suspect they are much better than the current test parameters.
Untitled.ipynb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this notebook seems quite useful, perhaps name it appropriately and move it to qualtran/bloqs/qsp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
anurudhp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good! left some comments on docstring fixes, otherwise lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please delete this file
- Fixed name mismatch in notebook preventing notebook check from passing. - Fixed formatting.

Added fft_qsp module to address Issue 1076
This fixes the error issues found by fast_complementary_polynomial by using the algorithm described in Berntson and Sunderhauf (2024) (Algorithm 2 based off the code in Figure 1). This method takes the target precision as an input parameter and automatically determines the number of FFT modes needed to guarantee the given precision.