Invert2sSI 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

Inverts a given integer modulo 2's complement.

operation Invert2sSI (xs : Microsoft.Quantum.Arithmetic.SignedLittleEndian) : Unit is Adj + Ctl

Input

xs : SignedLittleEndian

n-bit signed integer (SignedLittleEndian), will be inverted modulo 2's complement.

Output : Unit