powered by
Performs the continued fractions algorithm to find a fraction close to input value
CFA(y,epsilon=1e-2)
Value that function attempts to find. Typically comes from measurement of Shor's algorithm
Acceptable error between value and fraction
Vector containing numerator and denominator of fraction
# NOT RUN { CFA(285/14) # }
Run the code above in your browser using DataLab