IntAsBoolArray function
Namespace: Microsoft.Quantum.Convert
function IntAsBoolArray(number : Int, bits : Int) : Bool[]
Summary
Produces a binary representation of a non-negative integer, using the little-endian representation for the returned array.
Input
number
A non-negative integer to be converted to an array of Boolean values.
bits
The number of bits in the binary representation of number
.
Output
An array of Boolean values representing number
.
Remarks
The input bits
must be non-negative.
The input number
must be between 0 and 2^bits - 1.
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