Live data from Hacker News

Quantum Game with Photons

play.quantumgame.io

21–30 of 53 posts

Re: Quantum Game with Photons

#23
post #18

Author here. Really excited to see Quantum Game on HN! :) Just in case, project repo is here: https://github.com/stared/quantum-game For more on learning (and teaching) quantum mechanics, see: http://p.migdal.pl/2016/08/15/quantum-mechanics-for-high-sch... And BTW: a question to you (as I guess there are many JavaScript whizz kids): how to make it more reactive?

omg, i <3 love this... esp cool that you included technical details like the amount of rotation caused by glass slabs.

Re: Quantum Game with Photons

#24
I can't really make sense of interference. I made it to level 6, but I didn't understand the solutions for any of the 3 previous levels. I found some of the online help, but I'm not really making any sense of what it's saying.

Re: Quantum Game with Photons

#25
post #18

Author here. Really excited to see Quantum Game on HN! :) Just in case, project repo is here: https://github.com/stared/quantum-game For more on learning (and teaching) quantum mechanics, see: http://p.migdal.pl/2016/08/15/quantum-mechanics-for-high-sch... And BTW: a question to you (as I guess there are many JavaScript whizz kids): how to make it more reactive?

Thanks for the game. I am playing through the levels and it is a lot of fun. But so far I have not found an effect that cannot be calculated with the classical Maxwell equations in matter.

Re: Quantum Game with Photons

#26
Vertical and horizontal here seem quite confusing. The absorptive polarizer with vertical lines drawn on it passes through photons passing through PBS, which game calls horizontal. So either the polarizer lines have negative logic (indicating what is absorbed, not passed through), or there is some inconsistency. Similarly, the horizontal polarization is represented as photon bouncing up and down ("vertically") if it travels right. This can get confusing.

I wonder if some polarization arrow can be drawn somehow, like: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTAlDUU...

Re: Quantum Game with Photons

#27
post #6

Tip for those lost on level 1 - you can actually click on the mirrors itself to rotate them. Took me a while to figure that out...

And use Firefox.

Can confirm: clicking mirrors registers as a drag in Chrome 62.0.3202.94 under every circumstance I can find.

Re: Quantum Game with Photons

#29

I can't really make sense of interference. I made it to level 6, but I didn't understand the solutions for any of the 3 previous levels. I found some of the online help, but I'm not really making any sense of what it's saying.

This game isn't writing the numbers (complex-valued probability amplitudes of states, classical EM vectors even) anywhere so it's going to be pretty hard to relate what you're seeing here to the math that you'll find if you look up interference elsewhere.

I'll make an attempt here, though. I think the effect on level 4 is totally classical so it shouldn't take too much background.

1. The solution to a problem involving light is called a wavefunction, which is just a name assigned to functions that map position and time onto what the wave is doing at that position and time. I.E. for a sound wave, W(x: position, t: time) => p: air pressure.

2. The meat of a "wave equation" is essentially also a function, but it's higher-order. It maps wavefunctions onto wavefunctions, I.E. consider high-order function L, such that L(W: wavefunction) => X: wavefunction. The name for this map is an "operator," by the way.

3. We can set up operators L(W) so that they map all "true and physical" wavefunctions on to the zero-function, f(x,t) = 0. This contrivance is the job of physicists to design; so for our discussion let's just take it that for every physically possible W(x,t), it is the case that L(W(x,t)) = 0. (And vice-versa, every solution to that equation is physically possible.) The equation L(W) = 0 is called the "wave equation," by the way.

3. It is a property of L that L(W + Q) = L(W) + L(Q) for wavefunctions W and Q. This implies that if L(W) = 0 and L(Q) = 0, then L(W + Q) = L(W) + L(Q) = 0+0 = 0. Therefore, since physical possibility L(W) = 0, then we may conclude that the sum of any two physically possible wavefunctions W and Q is another physically possible wavefunction, W+Q.

4. Ignore time and look at my nice graph[0]. This illustrates adding two functions (there A(x) and B(x) ) which also happen to be solutions to the wave equation. Play around with the parameter p, (whose purpose is to let you select A to be one of many horizontally offset versions of itself) and see if you can make A + B do anything noteworthy.

[0] https://www.desmos.com/calculator/iwa3auxvuz

5. Hopefully in looking at my graph, you have noticed that for some values of p, A+B became flat everywhere. Now, I can finally explain what's going on with level 4. When the beamsplitter produces two beams from one, the two functions it shoots out have two different values of p, the dynamics detailed in [1]. If two beams are incident on the splitter, four beams will shoot out, and since some of them are overlapping in space they will add and you'll see the superposition effects. See my drawing [2]. (By the way, the parameter p is called phase, and the verb for the thing the waves to under superposition is called interference.)

[1] https://en.wikipedia.org/wiki/Beam_splitter#Phase_shift

[2] I've drawn it here. Please don't over-interpret it, I just sketched it in paint without a lot of attention to detail. https://imgur.com/a/7YLMa

Hopefully this is helpful and sheds some light on the underlying physics!

Post reply on HN