nlft_qsp.solvers.convolve_optimize
¶
Convolution optimization algorithm for polynomial completion (taken from github.com/Danimhn/GQSP-Code)
Note
This optional module uses torch (~=2.7.1), which is not included in the package requirements.
Functions:
| Name | Description |
|---|---|
complete |
Uses the convolution optimization algorithm to find a complementary polynomial to the given one. See arXiv:2308.01501 for an explanation of the method. |
complete(b: Polynomial) -> Polynomial
¶
Uses the convolution optimization algorithm to find a complementary polynomial to the given one. See arXiv:2308.01501 for an explanation of the method.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
b
|
Polynomial
|
The polynomial to complete. |
required |
Note
Numerical stability is not guaranteed.
Returns:
| Type | Description |
|---|---|
Polynomial
|
A polynomial \(a(z)\) satisfying \(|a(z)|^2 + |b(z)|^2 = 1\) on the unit circle. |
Polynomial
|
In particular \((a, b)\) will be in the image of the NLFT. |