Quantum Fourier Transform, Quantum Phase Estimation, Shors Algorithm, Quantum Computing, Qiskit.
in bin_string: dec_val = dec_val + (int(ch) / 2**i) i = i +1 return dec_val estimated_phase = bin_to_dec(max_binary_val) phase_accuracy_window = 2 ** -(len(max_binary_val)) # highest power of 2 (i.e. smallest decimal) this circuit can estimate print(estimated_phase, phase_accuracy_window) You will