Microsoft.Quantum.Bitwise namespace
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.
This namespace contains functions for acting on the bitwise representation of classical data types.
Description
A lot of functions in this namespace offer the same functionality as the bitwise expressions.
Functions
Name | Summary |
---|---|
And | Returns the bitwise AND of two integers. This performs the same computation as the built-in &&& operator. |
LeftShiftedI | Shifts the bitwise representation of a number left by a given number of bits. |
LeftShiftedL | Shifts the bitwise representation of a number left by a given number of bits. |
Not | Returns the bitwise NOT of an integer. This performs the same computation as the built-in ~~~ operator. |
Or | Returns the bitwise OR of two integers. This performs the same computation as the built-in ||| operator. |
Parity | Returns the bitwise PARITY of an integer. |
RightShiftedI | Shifts the bitwise representation of a number right by a given number of bits. |
RightShiftedL | Shifts the bitwise representation of a number right by a given number of bits. |
XBits | Returns an integer representing the X bits of an array of Pauli operators. |
Xor | Returns the bitwise exclusive-OR (XOR) of two integers. This performs the same computation as the built-in ^^^ operator. |
ZBits | Returns an integer representing the Z bits of an array of Pauli operators. |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for