RightShiftedI function
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.Bitwise
Package: Microsoft.Quantum.Standard
Shifts the bitwise representation of a number right by a given number of bits.
function RightShiftedI (value : Int, amount : Int) : Int
Input
value : Int
The number whose bitwise representation is to be shifted to the right (less significant).
amount : Int
The number of bits by which value
is to be shifted to the right.
Output : Int
The value of value
, shifted right by amount
bits.
Remarks
The following are equivalent:
let c = a >>> b;
let c = RightShiftedI(a, b);
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