Spin.Test Method (String, Int32, Int32, FSharpList<Tuple<Int32,Double[]>>, Int32, Spin, FSharpOption<Boolean>, FSharpOption<FSharpList<Tuple<FSharpFunc<Qubit, Unit>, Double>>>) |
Executes a set of simulation runs for a spin Hamiltonian.
Namespace: Microsoft.Research.LiquidAssembly: Liquid1 (in Liquid1.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxstatic 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: System.String
The output label for logging. - repeats
- Type: System.Int32
The number of simulations to run. - trotter
- Type: System.Int32
The Trotter number to use. - schedule
- Type: Microsoft.FSharp.Collections.FSharpList<Tuple<Int32,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: System.Int32
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.Liquid.Spin
The actual Hamiltonian to be simulated. - runonce
- Type: Microsoft.FSharp.Core.FSharpOption<Boolean>
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.Core.FSharpOption<FSharpList<Tuple<FSharpFunc<Qubit, Unit>, Double>>>
An optional decoherence model to use for this simulation.
See Hamiltonian.decohereModel for more information.
The default is no decoherence.
See Also