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

[GQSP] Optimally scaling polynomial approximations #860

Open
2 tasks
anurudhp opened this issue Apr 4, 2024 · 2 comments
Open
2 tasks

[GQSP] Optimally scaling polynomial approximations #860

anurudhp opened this issue Apr 4, 2024 · 2 comments

Comments

@anurudhp
Copy link
Contributor

anurudhp commented Apr 4, 2024

Context: P is a QSP polynomial if $|P(e^{i\theta})| \le 1$ for every $\theta \in [0, 2\pi)$.

When computing polynomial approximations for functions (that have infinite series), the polynomials may end up having max abs. value on the complex unit circle larger than 1, even if the actual function's absolute value is always at most 1 on the unit circle.

Current fix (#851) evaluate polynomial on (2**17 ~= 1.3e5) uniformly spaced points on the complex unit circle to compute the maximum absolute value, and scale down P by that.

Issues:

  • Improve efficiency (if possible) - current method uses FFT, so is O(N log N) to evaluate N points.
  • Correctness - value returned by current method can be smaller than the true maximum.

If anyone has ideas for correct and more efficient ways to compute the optimal scaling, please do share!

cc @tanujkhattar @skushnir123 @NoureldinYosri @ncrubin

@NoureldinYosri
Copy link
Contributor

how large is the degree of the polynomial?

@anurudhp
Copy link
Contributor Author

anurudhp commented Apr 5, 2024

The current simulation tests use up to ~ 300. We would ideally want to test it on degrees upto 1e7.

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

No branches or pull requests

2 participants