“…Since then, the problem has been generalized into finding an algorithm that given a p-coin -a coin that lands heads with unknown probability p -can produce an f (p)-coin for a given function f : D ⊆ (0, 1) → (0, 1). Keane and O'Brien [23] referred to this problem as the Bernoulli Factory and, motivated by problems in regenerative steady-state simulations [1,14], identified the class of functions f for which it is solvable. Since then, other studies have been carried out to provide ways of constructing and analysing the Bernoulli Factory algorithms [17,18,19,24,26,28,29] as well as extending it to quantum settings [6,31,40] and specialised multivariate scenarios [7,19].…”