PolynomialPauliRotations.degree

property PolynomialPauliRotations.degree: int

Return the degree of the polynomial, equals to the number of coefficients minus 1.

Return type

int

Returns

The degree of the polynomial. If the coefficients have not been set, return 0.