Click or drag to resize
OperationsBCany Method
Performs a gate under classical control. This gate allows an arbitrary condition to be specified. The parent gate will be executed if the condition function evaluates to true.

Namespace: Microsoft.Research.Liquid
Assembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)
Syntax
F#
static member BCany : 
        cnt : int * 
        tst : FSharpFunc<FSharpList<Qubit>, bool> * 
        f : FSharpFunc<FSharpList<Qubit>, Unit> * 
        qs : FSharpList<Qubit> -> unit 

Parameters

cnt
Type: SystemInt32
The count of binary control bits. These bits will not be passed to the parent gate.
tst
Type: Microsoft.FSharp.CoreFSharpFuncFSharpListQubit, Boolean
The condition function that controls execution of the parent gate.
f
Type: Microsoft.FSharp.CoreFSharpFuncFSharpListQubit, Unit
The parent gate to control
qs
Type: Microsoft.FSharp.CollectionsFSharpListQubit
A list of qubits. The initial cnt qubits are provided to the condition function, and the remainder are passed to the parent gate if it is executed.
See Also