r/QuantumComputing • • Mar 26 '21

Deutsch-Jozsa algorithm - an interactive optical implementation

90 Upvotes

10 comments sorted by

8

u/pmigdal Mar 26 '21

Deutsch-Jozsa quantum computing algorithm, interactively.

Is f(x) constant? Let's find it in one step!

Play with it interactively:
https://lab.quantumflytrap.com/lab/deutsch-jozsa

I am its coauthor, so ask me anything! :)

4

u/eelvex Mar 26 '21

Nice!

It would be interesting if you had a 'multiverse' version of this; something like, splitting the screen four-wise, one for each combination of (f(0), f(1)), so you can see the different paths clearly and how using the correct sequence provides the correct result regardless.

2

u/pmigdal Apr 08 '21

Do you mean a superposition of all f(x)?

Here you go - Deutsch-Jozsa in many worlds: https://lab.quantumflytrap.com/u/PiotrMigdal/Z31eYC_RQQ-NrX3l2Z9HoQ

1

u/eelvex Apr 08 '21

Lol! Amazing! Thanks.

2

u/Logicien Mar 27 '21

Congrats Piotr ;p

2

u/Arbitrary_Pseudonym Mar 27 '21 edited Mar 27 '21

Maybe I'm just dumb/blind, but er, are there puzzle levels? This appears to be a game-like setup...but missing the goal aspect. Not that there's anything wrong with neat exhibitions of physical constructions of quantum algorithms, but I would love to have some challenge problems to work through :)

Edit: Also, the arxiv reference on this one is missing a 0 at the end of the reference :O (it reads as 0810.197, but it's actually 0810.1970)

1

u/DeadInsideOutside Mar 27 '21

Interesting. I wish I knew about this a year ago, when I was writing a step-by-step explanation of BB84. I'm not very familiar with optical implementations, but I'll give it a go with what I'm writing now.

1

u/fordperfect14 Mar 26 '22

This is awesome! Thank you so much!