qrisp.BigInteger.create_static#
- static BigInteger.create_static(n, size)[source]#
Create a BigInteger from Python using pure Python loops.
This variant does not use JAX primitives and is suitable for static construction (e.g., outside jit). The result has exactly size limbs with wraparound modulo 2^(32*size).
- Parameters:
- nint or float
Non-negative number. Floats are truncated; very large floats (> 2**53) may lose precision before conversion.
- sizeint
Number of limbs (digits) to allocate.
- Returns:
- BigInteger
Fixed-width representation of n modulo 2^(32*size).