The Language-Integrated Quantum Operations (LIQUi|>) Simulator
Spin Constructor (FSharpListSpinTerm, Int32, FSharpOptionRunMode) |
Creates a spin Hamiltonian from a set of spin terms.
Namespace: Microsoft.Research.Liquid
Assembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)

F#
new : _spinTerms : FSharpList<SpinTerm> * _numSpins : int * _runMode : FSharpOption<RunMode> -> Spin
Parameters
- _spinTerms
- Type: Microsoft.FSharp.CollectionsFSharpListSpinTerm
The list of SpinTerms that together make up the spin Hamiltonian. - _numSpins
- Type: SystemInt32
The number of spins in the system. - _runMode
- Type: Microsoft.FSharp.CoreFSharpOptionRunMode
The Trotterization type to use. This must be one of Trotter1, Trotter1X, or Trotter2.
