quspin.basis.basis_int_to_python_int
- quspin.basis.basis_int_to_python_int(basis_int)
Converts QuSpin basis type integer to a python integer.
This function takes a QuSpin basis type integer and converts it to a python integer with the same value.
- Parameters:
- basis_int: scalar
integer to be converted
- Returns:
- object: int
the appropriate converted value to a python int.
Examples
>>> new_val = basis_int_to_python_int(val,dtype=uint256) >>> new_val = basis_int_to_python_int(val)