Click or drag to resize
OperationsT_BC Method
Performs a transverse classically-controlled gate.

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

Parameters

decode
Type: Microsoft.FSharp.CoreFSharpFuncFSharpListQubit, TupleBit, Int32
The code-specific decode function that takes a list of measured qubits and returns a logical value (One or Zero) and the Hamming distance from the current state to a valid code state.
f
Type: Microsoft.FSharp.CoreFSharpFuncFSharpListQubit, Unit
The (transverse) parent gate to control
qs
Type: Microsoft.FSharp.CollectionsFSharpListQubit
The first codeSize qubits in the list are passed to the decode function to compute a logical Zero or One state. If the decoded state is One, then the remaining qubits are passed to the parent gate.
See Also