Simulating the Monty Hall Problem on a Quantum Computer

Photo by Peter Neumann on Unsplash

The Monty Hall Problem

Simulation setup

Setting the initial state for the doors 1/√3(|100⟩ + |010⟩ + |001⟩)
Random winning door, random choice circuit
Experiment of random winning door, random choice

The “Monty qubit”

  • If the state of the qubit is |1⟩ then Monty opens the door immediately to the right of the chosen door. I.e. If the contestant chose door 1 then Monty opens door 2; if they chose door 2 he opens door 3; if they chose door 3 he opens door 1
  • If the state of the qubit is |0⟩ then Monty opens the door immediately to the left of the chosen door. I.e. If the contestant chose door 1 then Monty opens door 3; if they chose door 2 he opens door 1; if they chose door 3 he opens door 2.
Hadamard gate controlled by two qubits
Experiment incorporating the “Monty qubit” and it’s setup

Switching the contestant’s choice

Gates to permutate the choice to the right |100⟩|010⟩; |010⟩|001⟩; |001⟩|100⟩
Final circuit including switching the initial choice
Results of the final experiment

--

--

Quantum professionals and enthusiasts brought together to make technological advancments.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store