Click or drag to resize
QECCReplace Method
Gets a replacement physical gate for an input logical gate. The replacement may wrap a full Circuit.

Namespace: Microsoft.Research.Liquid
Assembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)
Syntax
F#
abstract Replace : 
        g : Gate -> FSharpOption<FSharpFunc<FSharpList<Qubit>, Unit>> 
override Replace : 
        g : Gate -> FSharpOption<FSharpFunc<FSharpList<Qubit>, Unit>> 

Parameters

g
Type: Microsoft.Research.LiquidGate
The logical gate function to replace.

Return Value

Type: FSharpOptionFSharpFuncFSharpListQubit, Unit
An option holding a physical gate that implements the logical gate. If there is no physical implementation of the logical gate, then None is returned.
Remarks
The default implementation replaces the Pauli gates, phase gate, Hadamard gate, identity gate, CNOT, and measurement with transverse versions of these gates. Classically-controlled versions of these gates are replaced by transverse versions, controlled by the decoded (logical) value of the classical control.
See Also