Hamiltonian<TTermClassification,TTermIndexing,TTermValue>.AddRange 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
| AddRange(IEnumerable<ValueTuple<TTermIndexing,TTermValue>>) |
Add multiple terms to a Hamiltonian. This method infers the term category from the term index if possible. |
| AddRange(TTermClassification, IEnumerable<ValueTuple<TTermIndexing,TTermValue>>) |
Adds multiple term to a Hamiltonian. |
AddRange(IEnumerable<ValueTuple<TTermIndexing,TTermValue>>)
Add multiple terms to a Hamiltonian. This method infers the term category from the term index if possible.
public void AddRange (System.Collections.Generic.IEnumerable<(TTermIndexing, TTermValue)> terms);
member this.AddRange : seq<ValueTuple<'ermIndexing, 'ermValue>> -> unit
Public Sub AddRange (terms As IEnumerable(Of ValueTuple(Of TTermIndexing, TTermValue)))
Parameters
- terms
- IEnumerable<ValueTuple<TTermIndexing,TTermValue>>
Enumerable sequence of terms and coefficients.
Applies to
AddRange(TTermClassification, IEnumerable<ValueTuple<TTermIndexing,TTermValue>>)
Adds multiple term to a Hamiltonian.
public void AddRange (TTermClassification type, System.Collections.Generic.IEnumerable<(TTermIndexing, TTermValue)> terms);
member this.AddRange : 'ermClassification * seq<ValueTuple<'ermIndexing, 'ermValue>> -> unit
Public Sub AddRange (type As TTermClassification, terms As IEnumerable(Of ValueTuple(Of TTermIndexing, TTermValue)))
Parameters
- type
- TTermClassification
Category of terms.
- terms
- IEnumerable<ValueTuple<TTermIndexing,TTermValue>>
Enumerable sequence of terms and coefficients.