

def        lowerCAmelCase(	SCREAMING_SNAKE_CASE_       ,		SCREAMING_SNAKE_CASE_       ,		SCREAMING_SNAKE_CASE_       )->		Optional[Any]:



    """simple docstring"""






    if power < 0:
        return -1
    base %= mod
    UpperCamelCase_          =		1

    while power > 0:
        if power & 1:
            UpperCamelCase_          =		(result * base) % mod
        UpperCamelCase_          =		power >> 1
        UpperCamelCase_          =		(base * base) % mod

    return result




def        lowerCAmelCase(	)->		str:



    """simple docstring"""






    print(modular_exponential(3       ,		2_0_0       ,		1_3       )       )


if __name__ == "__main__":
 import doctest

 doctest.testmod()

 main()






import doctest

import projectq
from projectq.ops import H, Measure

def 					SCREAMING_SNAKE_CASE							(   __UpperCamelCase)			->     int:
     a      =      quantum_engine.allocate_qubit()
     H | qubit
     Measure | qubit
     return int(__UpperCamelCase)


if __name__ == "__main__":
   doctest.testmod()

   # initialises a new quantum backend
   lowercase__      :			Optional[int]           =					projectq.MainEngine()

   # Generate a list of 10 random numbers
   lowercase__      :			List[str]           =					[get_random_number(quantum_engine) for _ in range(10)]

   # Flushes the quantum engine from memory
   quantum_engine.flush()

   print("Random numbers", random_numbers_list)

