Quantum Computing, Crypto, Quantum Physics, Cryptography, Education.
n_count qubits for q in range(n_count): qc.h(q) # Apply X gate to the auxiliary qubit qc.x(3+n_count) # Apply the controlled modular multiplication operation for each power of 2 up to n_count for q in range(n_count): qc.append(c_amod15(a, 2**q), [q] + [i+n_count for i in range(4)]) # Apply the