Billiard Ball Fredkin Gate
Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
A Fredkin gate with binary inputs returns the inputs unchanged if , but switches inputs 2 and 3 to give if . In this Demonstration, the gate is shown with billiard balls bouncing off fixed dominoes and each other. You can choose from seven possible inputs. The two interesting cases are and , which transform into one another. All other cases return their inputs.
Contributed by: Ed Pegg Jr (January 2023)
Open content licensed under CC BY-NC-SA
 M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press, 2000 p. 156. mmrc.amss.cas.cn/tlb/201702/W020170224608149940643.pdf.