SpinOrbital.ToInt 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
| ToInt() |
This maps the separate orbital and spin indices of a |
| ToInt(IndexConvention, Int32) |
This maps the separate orbital and spin indices of a |
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
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.