A module for sampling a frequency j from the distribution induced by Shor's order-finding algorithm for a given order r.
import quaspy.orderfinding.general.sampling
-
Computes and returns the optimal frequency j0(z) for z in [0, r).
-
Samples a frequency j from the distribution induced by Shor's order-finding algorithm for a given order r.