LeftShiftedI 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 left by a given number of bits.

function LeftShiftedI (value : Int, amount : Int) : Int

Input

value : Int

The number whose bitwise representation is to be shifted to the left (more significant).

amount : Int

The number of bits by which value is to be shifted to the left.

Output : Int

The value of value, shifted left by amount bits.

Remarks

The following are equivalent:

let c = a <<< b;
let c = LeftShiftedI(a, b);