Convert.ToQSharpFormat 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.
Overloads
| ToQSharpFormat(FermionWavefunction<Int32>) |
Translate initial state to a format consumable by Q#. |
| ToQSharpFormat(PauliHamiltonian) | |
| ToQSharpFormat(ValueTuple<Double,Int64,JWOptimizedHTerms>, ValueTuple<Int64,QArray<JordanWignerInputState>>) |
Combine Q# Hamiltonian and wavefunction data to a format consumed by the Q# chemistry libraries. |
ToQSharpFormat(FermionWavefunction<Int32>)
Translate initial state to a format consumable by Q#.
public static (long, Microsoft.Quantum.Simulation.Core.QArray<Microsoft.Quantum.Chemistry.JordanWigner.JordanWignerInputState>) ToQSharpFormat (this Microsoft.Quantum.Chemistry.Fermion.FermionWavefunction<int> inputState);
static member ToQSharpFormat : Microsoft.Quantum.Chemistry.Fermion.FermionWavefunction<int> -> ValueTuple<int64, Microsoft.Quantum.Simulation.Core.QArray<Microsoft.Quantum.Chemistry.JordanWigner.JordanWignerInputState>>
<Extension()>
Public Function ToQSharpFormat (inputState As FermionWavefunction(Of Integer)) As ValueTuple(Of Long, QArray(Of JordanWignerInputState))
Parameters
- inputState
- FermionWavefunction<Int32>
Initial state
Returns
- ValueTuple<Int64,Microsoft.Quantum.Simulation.Core.QArray<Microsoft.Quantum.Chemistry.JordanWigner.JordanWignerInputState>>
Initial state in Q# format.
Applies to
ToQSharpFormat(PauliHamiltonian)
public static (double, long, Microsoft.Quantum.Chemistry.JordanWigner.JWOptimizedHTerms) ToQSharpFormat (this Microsoft.Quantum.Chemistry.Paulis.PauliHamiltonian pauliHamiltonian);
static member ToQSharpFormat : Microsoft.Quantum.Chemistry.Paulis.PauliHamiltonian -> ValueTuple<double, int64, Microsoft.Quantum.Chemistry.JordanWigner.JWOptimizedHTerms>
<Extension()>
Public Function ToQSharpFormat (pauliHamiltonian As PauliHamiltonian) As ValueTuple(Of Double, Long, JWOptimizedHTerms)
Parameters
- pauliHamiltonian
- PauliHamiltonian
Returns
- ValueTuple<Double,Int64,Microsoft.Quantum.Chemistry.JordanWigner.JWOptimizedHTerms>
Applies to
ToQSharpFormat(ValueTuple<Double,Int64,JWOptimizedHTerms>, ValueTuple<Int64,QArray<JordanWignerInputState>>)
Combine Q# Hamiltonian and wavefunction data to a format consumed by the Q# chemistry libraries.
public static Microsoft.Quantum.Chemistry.JordanWigner.JordanWignerEncodingData ToQSharpFormat ((double, long, Microsoft.Quantum.Chemistry.JordanWigner.JWOptimizedHTerms) pauliHamiltonianQSharpFormat, (long, Microsoft.Quantum.Simulation.Core.QArray<Microsoft.Quantum.Chemistry.JordanWigner.JordanWignerInputState>) wavefunctionQSharpFormat);
static member ToQSharpFormat : ValueTuple<double, int64, Microsoft.Quantum.Chemistry.JordanWigner.JWOptimizedHTerms> * ValueTuple<int64, Microsoft.Quantum.Simulation.Core.QArray<Microsoft.Quantum.Chemistry.JordanWigner.JordanWignerInputState>> -> Microsoft.Quantum.Chemistry.JordanWigner.JordanWignerEncodingData
Public Function ToQSharpFormat (pauliHamiltonianQSharpFormat As ValueTuple(Of Double, Long, JWOptimizedHTerms), wavefunctionQSharpFormat As ValueTuple(Of Long, QArray(Of JordanWignerInputState))) As JordanWignerEncodingData
Parameters
- pauliHamiltonianQSharpFormat
- ValueTuple<Double,Int64,Microsoft.Quantum.Chemistry.JordanWigner.JWOptimizedHTerms>
Hamiltonian data in Q# format.
- wavefunctionQSharpFormat
- ValueTuple<Int64,Microsoft.Quantum.Simulation.Core.QArray<Microsoft.Quantum.Chemistry.JordanWigner.JordanWignerInputState>>
Wavefunction data in Q# format.
Returns
- Microsoft.Quantum.Chemistry.JordanWigner.JordanWignerEncodingData
Combined Hamiltonian and wave function data in Q# format.