Click or drag to resize
Spin Methods

The Spin type exposes the following members.

Methods
  NameDescription
Public methodCopy
Returns an instance of Spin with the same Hamiltonian parameters as this instance. Simulation parameters such as run time and Trotter number are not copied.
Public methodEnergyExpectation
Finds the expectation value of the Hamiltonian. That is, given a state vector |psi>, this method computes <psi|H|psi>.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodStatic memberFerro
Test adiabatic evolution with a ferro-magnetic chain
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodPeek
Peeks at the current Hamiltonian matrix. This is based on the most recently grown circuit.
Public methodPrep
Prepares the qubit state for a run. All qubits are resets and initialized to the ground state.
Public methodRun
Runs the simulation. This is a highly optimized implementation.
Public methodStep
Performs a single timestep of simulation.
Public methodStatic memberTest(String, Int32, Int32, FSharpListTupleInt32, Double, Int32, Spin, FSharpOptionBoolean, FSharpOptionFSharpListTupleFSharpFuncQubit, Unit, Double)
Executes a set of simulation runs for a spin Hamiltonian.
Public methodStatic memberTest(String, Int32, Int32, DictionaryInt32, Double, DictionaryTupleInt32, Int32, Double, FSharpListTupleInt32, Double, Double, Int32, FSharpOptionBoolean, FSharpOptionFSharpListTupleFSharpFuncQubit, Unit, Double)
Executes a set of simulation runs for a spin Hamiltonian.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also