FermionTerm.Implicit Operator

Definition

Overloads

Implicit(Int32[] to FermionTerm)

Construct a sequence of ladder operators from an even-length sequence of integers.

Implicit(ValueTuple<RaisingLowering,Int32>[] to FermionTerm)

Implicit operator for creating a Ladder operator.

Implicit(Int32[] to FermionTerm)

Construct a sequence of ladder operators from an even-length sequence of integers.

public static implicit operator Microsoft.Quantum.Chemistry.Fermion.FermionTerm (int[] indices);
static member op_Implicit : int[] -> Microsoft.Quantum.Chemistry.Fermion.FermionTerm
Public Shared Widening Operator CType (indices As Integer()) As FermionTerm

Parameters

indices
Int32[]

Even-length sequence of integers.

Returns

FermionTerm

Sequence of ladder operators with an equal number of creation and annihilation terms that are normal-ordered.

Examples

// The following two return the same ladder operator sequence.
var seq = new[] { 1, 2, 3, 4 }.ToLadderSequence();
var expected = new[] { (u, 1), (u, 2), (d, 3), (d, 4) }.ToLadderSequence();

Applies to

Implicit(ValueTuple<RaisingLowering,Int32>[] to FermionTerm)

Implicit operator for creating a Ladder operator.

public static implicit operator Microsoft.Quantum.Chemistry.Fermion.FermionTerm ((Microsoft.Quantum.Chemistry.RaisingLowering, int)[] setSequence);
static member op_Implicit : ValueTuple<Microsoft.Quantum.Chemistry.RaisingLowering, int>[] -> Microsoft.Quantum.Chemistry.Fermion.FermionTerm
Public Shared Widening Operator CType (setSequence As ValueTuple(Of RaisingLowering, Integer)()) As FermionTerm

Parameters

setSequence
ValueTuple<RaisingLowering,Int32>[]

Tuple where the first parameter is the raising or lowering index, and the second parameter is the position index of the ladder operator.

Returns

FermionTerm

Applies to