Gate Methods

Liquid Quantum Simulator

Gate Methods

The Gate type exposes the following members.

Methods
  Name Description
Public method AddControl
Creates a new gate by adding one or more control qubits to an existing unitary gate.
Public method Static member 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.
Public method Static member CacheClear
Clears out the gate cache.
Public method Static member CacheStats
Gets gate cache statistics.
Public method Dump
Dumps the full gate information to the consol and/or log.
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method NewMat
Makes a new gate based on this gate but with new unitary matrix.
Public method OptimizeKraus
Optimze a Channel gate with Kraus operators (checks correctness and orders by magnitude)
Public method Run
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 method Static member ShowMem(Int32, FSharpFuncUnit, String, FSharpOptionFSharpListCircuit, FSharpOptionBoolean, FSharpOptionBoolean)
Outputs memory and garbage collection statistics to the log and console.
Public method Static member ShowMem(Int32, String, FSharpOptionFSharpListCircuit, FSharpOptionBoolean, FSharpOptionBoolean)
Outputs memory and garbage collection statistics to the log and console.
Public method ToString
Returns a string representation of this gate, based on the gate's name, help string, and type.
(Overrides ObjectToString.)
Top
See Also