InvertFxP operation

Warning

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

Please see https://aka.ms/qdk.api 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

Input

fp : FixedPoint

Fixed-point number to invert.

Output : Unit

Remarks

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