paddle_quantum.qpp.angles

paddle_quantum.qpp.angles.qpp_angle_finder(P, Q)

Find the corresponding set of angles for a Laurent pair P, Q.

Parameters:
Returns:

  • list_theta: angles for \(R_Y\) gates;

  • list_phi: angles for \(R_Z\) gates.

Return type:

contains the following elements

paddle_quantum.qpp.angles.qpp_angle_approximator(P, Q)

Approximate the corresponding set of angles for a Laurent pair P, Q.

Parameters:
Returns:

  • list_theta: angles for \(R_Y\) gates;

  • list_phi: angles for \(R_Z\) gates.

Return type:

contains the following elements

Note

unlike yzzyz_angle_finder, yzzyz_angle_approximator assumes that the only source of error is the precision (which is not generally true).