Microsoft.Quantum.Bitwise namespace
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. |
反馈
提交和查看相关反馈