mindquantum.core.operators.up_index
- mindquantum.core.operators.up_index(index)[source]
Up index getter function.
The index order, by default we set the spinless orbits as even-odd-even-odd (0,1,2,3,…). The spin_up orbitals (alpha orbitals) with index even.
- Parameters
index (int) – spatial orbital index.
- Returns
int, the index of the associated spin-up orbital.
Examples
>>> from mindquantum.core.operators import up_index >>> up_index(1) 2