| Gate Class |
Namespace: Microsoft.Research.Liquid
[<SerializableAttribute>] type Gate = class end
The Gate type exposes the following members.
| Name | Description | |
|---|---|---|
| Arity |
Get arity of the gate (based on Qubits or Mat/Kraus size).
| |
| CacheDisable |
Whether or not the gate cache is disabled.
The cache is used if this property is false.
The cache should be disabled if gates are being built in parallel.
| |
| Draw |
The drawing instructions for this gate.
| |
| Help |
The help string for this gate.
| |
| Kraus |
The Kraus operator matrix list for this gate (if op type is Channel).
If the gate is not a channel, this will be an empty list.
| |
| Mat |
The unitary matrix for this gate.
If the gate is not defined by a single unitary, this will be a 0x0 matrix.
| |
| Name |
The name of this gate.
| |
| Op |
This gate's operation.
| |
| Parent |
This gate's parent, if any.
| |
| Qubits |
The arity of this gate; that is, the number of qubits the gate operates on.
| |
| User |
The user info associated with this gate, if any.
|
| Name | Description | |
|---|---|---|
| AddControl |
Creates a new gate by adding one or more control qubits to an existing unitary gate.
| |
| Build |
Gets the definition of a gate, using the cache.
If the gate is already in the cache, the cached definition is returned.
Otherwise, a new gate will be created, added to the cache, and returned.
| |
| CacheClear |
Clears out the gate cache.
| |
| CacheStats |
Gets gate cache statistics.
| |
| Dump |
Dumps the full gate information to the consol and/or log.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| NewMat |
Makes a new gate based on this gate but with new unitary matrix.
| |
| OptimizeKraus |
Optimze a Channel gate with Kraus operators (checks correctness and orders by magnitude)
| |
| Run |
Run this gate.
The details depend on the current value of
Ket.Mode:
| |
| ShowMem(Int32, FSharpFuncUnit, String, FSharpOptionFSharpListCircuit, FSharpOptionBoolean, FSharpOptionBoolean) |
Outputs memory and garbage collection statistics to the log and console.
| |
| ShowMem(Int32, String, FSharpOptionFSharpListCircuit, FSharpOptionBoolean, FSharpOptionBoolean) |
Outputs memory and garbage collection statistics to the log and console.
| |
| ToString |
Returns a string representation of this gate, based on the gate's name,
help string, and type.
(Overrides ObjectToString.) |