Click or drag to resize
Spin Constructor (DictionaryInt32, Double, DictionaryTupleInt32, Int32, Double)
Creates a spin Hamiltonian for simple systems that only have single spin biases and two-spin couplings. The count of spins is inferred.

Namespace: Microsoft.Research.Liquid
Assembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)
Syntax
F#
new : 
        hs : Dictionary<int, float> * 
        Js : Dictionary<Tuple<int, int>, float> -> Spin

Parameters

hs
Type: System.Collections.GenericDictionaryInt32, Double
A Dictionary that maps a qubit id to that qubit's bias strength (Z term coefficient).
Js
Type: System.Collections.GenericDictionaryTupleInt32, Int32, Double
A Dictionary that maps a pair of qubit id's to the pair's coupling strength (ZZ coefficient).
See Also