Click or drag to resize
Gate Methods

The Gate type exposes the following members.

Methods
  NameDescription
Public methodAddControl
Creates a new gate by adding one or more control qubits to an existing unitary gate.
Public methodStatic memberBuild
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.
Public methodStatic memberCacheClear
Clears out the gate cache.
Public methodStatic memberCacheStats
Gets gate cache statistics.
Public methodDump
Dumps the full gate information to the consol and/or log.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodNewMat
Makes a new gate based on this gate but with new unitary matrix.
Public methodOptimizeKraus
Optimze a Channel gate with Kraus operators (checks correctness and orders by magnitude)
Public methodRun
Run this gate. The details depend on the current value of Ket.Mode:
  • RunMode: Apply this gate operation to the supplied qubits.
  • GateMode: Stores this gate definition into the current Ket. This is for internal use.
  • CircMode: Compiles this gate into a Circuit. This is for internal use.
Public methodStatic memberShowMem(Int32, FSharpFuncUnit, String, FSharpOptionFSharpListCircuit, FSharpOptionBoolean, FSharpOptionBoolean)
Outputs memory and garbage collection statistics to the log and console.
Public methodStatic memberShowMem(Int32, String, FSharpOptionFSharpListCircuit, FSharpOptionBoolean, FSharpOptionBoolean)
Outputs memory and garbage collection statistics to the log and console.
Public methodToString
Returns a string representation of this gate, based on the gate's name, help string, and type.
(Overrides ObjectToString.)
Top
See Also