Click or drag to resize
SpinTest Method (String, Int32, Int32, FSharpListTupleInt32, Double, Int32, Spin, FSharpOptionBoolean, FSharpOptionFSharpListTupleFSharpFuncQubit, Unit, Double)
Executes a set of simulation runs for a spin Hamiltonian.

Namespace: Microsoft.Research.Liquid
Assembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)
Syntax
F#
static member Test : 
        tag : string * 
        repeats : int * 
        trotter : int * 
        schedule : FSharpList<Tuple<int, float[]>> * 
        res : int * 
        spin : Spin * 
        runonce : FSharpOption<bool> * 
        decohereModel : FSharpOption<FSharpList<Tuple<FSharpFunc<Qubit, Unit>, float>>> -> unit 

Parameters

tag
Type: SystemString
The output label for logging.
repeats
Type: SystemInt32
The number of simulations to run.
trotter
Type: SystemInt32
The Trotter number to use.
schedule
Type: Microsoft.FSharp.CollectionsFSharpListTupleInt32, Double
The annealing schedule to use. Each entry in the list is a tuple whose first entry is a time step and whose second entry is an array of annealing values. Annealing values for time steps in between entries are computed by linearly interpolating between those for the previous and next entries. The list must be in ascneding order by time step.
res
Type: SystemInt32
The resolution of the simulation, in time steps. Larger values may increase speed but will reduce the granularity of output. Note that this must evenly divide the final time in the annealing schedule.
spin
Type: Microsoft.Research.LiquidSpin
The actual Hamiltonian to be simulated.
runonce
Type: Microsoft.FSharp.CoreFSharpOptionBoolean
An option to only run the simulation once and perform repeated 'virtual measurements'. The default is false, which means to run the simulation and measure each time.
decohereModel
Type: Microsoft.FSharp.CoreFSharpOptionFSharpListTupleFSharpFuncQubit, Unit, Double
An optional decoherence model to use for this simulation. See Hamiltonian.decohereModel for more information. The default is no decoherence.
See Also