TOPICS
Search

Galperin's Billiards


Galperin's billiards is a billiards model of two point masses on a frictionless half-line bounded by a wall. The mass m nearer the wall starts at rest, while the outer mass M moves toward it. All collisions are elastic, and the count includes both collisions between the masses and collisions with the wall (Galperin 2003).

If x and y are the respective distances from the wall, then 0<=x<=y. In the scaled coordinates (sqrt(m)x,sqrt(M)y), the wall and mutual collisions correspond to the two boundary rays of a wedge of angle theta=tan^(-1)(sqrt(m/M)). Conservation of energy preserves the speed in these coordinates, and at a mutual collision conservation of momentum preserves the tangential component of velocity. At the wall, only the component normal to the boundary changes sign. Thus each collision is a reflection in a boundary ray.

Successive reflections of the wedge unfold the trajectory into a ray. The trajectory starts inside the first wedge and moves in the direction opposite to the wall boundary ray, so its angular coordinate measured from the wall boundary approaches pi. It crosses exactly the successive boundary rays at angles ktheta<pi for positive integers k. The total collision count is therefore

 N=[pi/theta]-1,

where [x] is the ceiling function (Galperin 2003).

For M/m=100^n with n a positive integer, the count equals the decimal truncation |_10^npi_| or exceeds it by 1 (Galperin 2003, Aretxabaleta et al. 2020). Here |_x_| is the floor function, and the truncations, starting with n=0, are 3, 31, 314, 3141, ... (OEIS A011545). For example, the count is exactly 3141 when M/m=10^6. 3Blue1Brown (2025) illustrates the collision geometry in velocity phase space.

Brown (2020) identifies the velocity reflections with the two steps of Grover's algorithm. In the search model, both masses start with the same velocity toward the wall. For a search with one marked item among N possibilities, the mass ratio is M/m=N-1, and a wall collision followed by a mutual collision corresponds to one iteration of the algorithm.


See also

Billiards, Grover's Algorithm, Pi

Explore with Wolfram|Alpha

References

3Blue1Brown. "Why Colliding Blocks Compute Pi." YouTube. Mar. 13, 2025. https://www.youtube.com/watch?v=6dTyOl1fmDo.Aretxabaleta, X. M.; Gonchenko, M.; Harshman, N. L.; Jackson, S. G.; Olshanii, M.; and Astrakharchik, G. E. "The Dynamics of Digits: Calculating Pi with Galperin's Billiards." Mathematics 8, 509, 2020. https://doi.org/10.3390/math8040509.Brown, A. R. "Playing Pool with |psi>: From Bouncing Billiards to Quantum Search." Quantum 4, 357, 2020. https://doi.org/10.22331/q-2020-11-02-357.Galperin, G. "Playing Pool with pi (The Number pi from a Billiard Point of View)." Regul. Chaotic Dyn. 8, 375-394, 2003. https://doi.org/10.1070/RD2003v008n04ABEH000252.Sloane, N. J. A. Sequence A011545 in "The On-Line Encyclopedia of Integer Sequences."

Cite this as:

Weisstein, Eric W. "Galperin's Billiards." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/GalperinsBilliards.html

Subject classifications