Convert.InitialStatePrep Method
Definition
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.
Translate initial state specified by a FermionTerm acting on the vacuum state to a format consumable by Q#
public static Microsoft.Quantum.Chemistry.JordanWigner.JordanWignerInputState InitialStatePrep (System.Numerics.Complex complexCoeff, Microsoft.Quantum.Chemistry.LadderOperators.IndexOrderedSequence<int> term, bool checkAnnihilation);
static member InitialStatePrep : System.Numerics.Complex * Microsoft.Quantum.Chemistry.LadderOperators.IndexOrderedSequence<int> * bool -> Microsoft.Quantum.Chemistry.JordanWigner.JordanWignerInputState
Public Function InitialStatePrep (complexCoeff As Complex, term As IndexOrderedSequence(Of Integer), checkAnnihilation As Boolean) As JordanWignerInputState
Parameters
- complexCoeff
- Complex
coefficient of term.
- term
- IndexOrderedSequence<Int32>
Sequence of creation operations acting on vacuum state.
- checkAnnihilation
- Boolean
If true, throws an exception if annihilation operators act on the vacuum state.
Returns
- Microsoft.Quantum.Chemistry.JordanWigner.JordanWignerInputState
Q# description of initial state