ResultArrayAsInt function
Namespace: Microsoft.Quantum.Convert
Package: Microsoft.Quantum.Standard
Produces a non-negative integer from a string of Results in little endian format.
function ResultArrayAsInt (results : Result[]) : Int
Input
results : Result[]
Results in binary representation of number.
Output : Int
A non-negative integer
Example
// The following returns 1
let int1 = ResultArrayAsInt([One,Zero])
Feedback
Submit and view feedback for