InvertFxP operation


This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.

Please see for the API documentation for the Modern QDK.

Namespace: Microsoft.Quantum.Arithmetic

Package: Microsoft.Quantum.Numerics

Computes the additive inverse of fp.

operation InvertFxP (fp : Microsoft.Quantum.Arithmetic.FixedPoint) : Unit is Adj + Ctl


fp : FixedPoint

Fixed-point number to invert.

Output : Unit


Numerical inaccuracies may occur depending on the bit-precision of the fixed-point number.