Microsoft.Quantum.Chemistry.Json Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Fermion |
This Newtonsoft.Json.JsonConverter allows correctly serialized HamiltonianTerms. This terms are in general problematic because their keys are not strings, but Microsoft.Quantum.Chemistry.Generic.HamiltonianTerm instances, which Newtonsoft.Json doesn't like by default. This converts the Dictionaries to List of Tuples, in which the first item of the tuple is the key and the second the value. |
Hamiltonian |
This JsonConverter allows correctly serialized HamiltonianTerms. This terms are in general problematic because their keys are not strings, but HamiltonianTerms, which json.net doesn't like by default. This converts the Dictionaries to List of Tuples, in which the first item of the tuple is the key and the second the value. |
Ladder |
This JsonConverter encodes of a LadderOperator as a System.ValueTuple instead of as an object. |
Ladder |
This JsonConverter encodes of a LadderSequence as a Tuple instead of as an object. |