SpinOrbital.ToInt Method

Definition

Overloads

ToInt()

This maps the separate orbital and spin indices of a SpinOrbital to a single integer index according to 2*orbitalIndex + spinIndex.

ToInt(IndexConvention, Int32)

This maps the separate orbital and spin indices of a SpinOrbital to a single integer index.

ToInt()

This maps the separate orbital and spin indices of a SpinOrbital to a single integer index according to 2*orbitalIndex + spinIndex.

public int ToInt ();
member this.ToInt : unit -> int
Public Function ToInt () As Integer

Returns

Int32

Applies to

ToInt(IndexConvention, Int32)

This maps the separate orbital and spin indices of a SpinOrbital to a single integer index.

public int ToInt (Microsoft.Quantum.Chemistry.IndexConvention indexConvention, int nOrbitals = 2147483646);
member this.ToInt : Microsoft.Quantum.Chemistry.IndexConvention * int -> int
Public Function ToInt (indexConvention As IndexConvention, Optional nOrbitals As Integer = 2147483646) As Integer

Parameters

indexConvention
IndexConvention
nOrbitals
Int32

The total number of orbitals.

Returns

Int32

Applies to