qrisp.gqsp.gqsp_angles#

gqsp_angles(p: ArrayLike) Tuple[Tuple[Array, Array, Array], Array][source]#

Computes the GQSP angles for a given polynomial.

Parameters:
pArrayLike

1-D array containing the polynomial coefficients, ordered from lowest order term to highest.

Returns:
anglestuple of (Array, Array, Array)

A collection containing:

  • theta (Array): 1-D array of angles \((\theta_0,\dotsc,\theta_d)\).

  • phi (Array): 1-D array of angles \((\phi_0,\dotsc,\phi_d)\).

  • lambda (Array): The scalar angle \(\lambda\) as 0-D array.

alphaArray

The scalar scaling factor as 0-D array.

Notes

  • The resulting angles correspond to a rescaled version of the input polynomial.