Performs a gate based on a classical condition.
The parent gate is executed if the test function returns true.
Typically this condition is based on the results of one or more joint parity measurements.
Namespace: Microsoft.Research.LiquidAssembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)
Syntax static member PC :
lbl : string *
tst : FSharpFunc<FSharpList<Qubit>, bool> *
f : FSharpFunc<FSharpList<Qubit>, Unit> *
qs : FSharpList<Qubit> -> unit
Parameters
- lbl
- Type: SystemString
A label for drawing. - tst
- Type: Microsoft.FSharp.CoreFSharpFuncFSharpListQubit, Boolean
The test function used to control 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 which will be passed to the parent gate
if it is executed.
See Also Reference
Ket.Symbol(String, Int32)