Click or drag to resize
GateAddControl Method
Creates a new gate by adding one or more control qubits to an existing unitary gate.

Namespace: Microsoft.Research.Liquid
Assembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)
Syntax
F#
member AddControl : 
        count : FSharpOption<int> * 
        noCache : FSharpOption<bool> -> Gate 

Parameters

count
Type: Microsoft.FSharp.CoreFSharpOptionInt32
The optional number of control qubits to add. The default is a single control.
noCache
Type: Microsoft.FSharp.CoreFSharpOptionBoolean
An option to prevent caching of the new gate. The default is false, which means that the new gate should be cached. The key for the cache is a sequence of capital Cs, one for each control qubit added, followed by an underscore, '_', and then the name of the base gate.

Return Value

Type: Gate
The new controlled gate
See Also