BoolAsResult function
Namespace: Microsoft.Quantum.Convert
Package: Microsoft.Quantum.Standard
Converts a Bool
type to a Result
type, where true
is mapped to
One
and false
is mapped to Zero
.
function BoolAsResult (input : Bool) : Result
Input
input : Bool
Bool
to be converted.
Output : Result
A Result
representing the input
.
Feedback
Submit and view feedback for