CFA {QuantumOps}R Documentation

CFA

Description

Performs the continued fractions algorithm to find a fraction close to input value

Usage

CFA(y,epsilon=1e-2)

Arguments

y

Value that function attempts to find. Typically comes from measurement of Shor's algorithm

epsilon

Acceptable error between value and fraction

Value

Vector containing numerator and denominator of fraction

Examples

 CFA(285/14)

[Package QuantumOps version 3.0.1 Index]