quantum physicist here. I code with quantum computers (well, simulators most of the time) quite a lot.
This is a cool demo and a great first effort, but does it really use IBM's quantum computer? From my experience, the queues are generally quite long and and it takes atleast 10-15 secs from submission to getting your results back. And getting a single bit back is hugely inefficient. My guess is that you are submitting a circuit with hadamard on all the qubits with 1000-10000 shots and storing the results and showing them to people one by one? This might be misleading as you are not actually connected to the ibm quantum computer and generating random numbers in real-time.
Plus, since the ibm quantum comptuers exhibit a lot of noise, you are not getting truly random numbers. A better introduction to generating random numbers and also certifying them is available:
https://github.com/dorahacksglobal/quantum-randomness-genera...
You can play with this on qBraid.com and try out even more quantum computers. We actually used this as a hackathon challenge at South Carolina Hackathon. Keep on building and join us at future events!
A few years ago I heard a story on NPR about someone who built a site that also used the IBM quantum backend. They had you input a question about what you should do with your life (I think the example was "Should I grow a beard?"). Then the quantum backend would give you a yes or no answer.
The idea here is that if you believe the many worlds interpretation then that quantum decision splits the universe in two, and in one universe you grow a beard, and in the other you don't.
Considering this states its talking to an actual quantum computer somewhere(at least that's what I'm led to believe by the "Connected to <some instance somewhere>" in the bottom right), I'd imagine this has gotten hugged to death, and hence why we are only seeing the spinning coins rather than it actually resolving.
It's not true that computer randomness is predictable, all recent computers have entropy sources which are essentially quantum in nature - thermal noise.
I watched how it works, but it seems the rotation is just an animation and a fake. There are two requests: /flip and /info. When you click mouse button, the /flip request is GET immediately and it returns a result of 1(eagle) or 0. After that the coin animation begins with requests to /info which always returns the same response for no clear reason. After several /info requests the coin eventually stops without receiving any new results.
I've wondered for a long time what the user experience for quantum computing will look like. I had imagined some library with a type for "qbit" and an dsl for making them interact in certain ways and then some kind of async thing where your classical code could run locally while periodically shuttling data to and from wherever the quantum computer is.
This isn't quite that but I guess it's a first step.
Question from someone who's not going to even pretend to understand quantum physics..
The explanation says the visualization shows the coin in all possible states. I'm trying to count quickly and it seems like about 8. Does all possible states mean there's an infinite number and 8 are shown for visualization purposes, or is there a finite predictable number of possible states.
In the many worlds interpretation, if one connected this computer to a machine that would instantly kill you if the result was heads, you as the observer should find that you never die, but rather that the machine always seems to come up tails. Is that correct? Might be cool for some kind of euthanasia patient to experience.
Tangent, but interesting: how do you get fair samples from a biased coin?
1. You take a string of biased samples like 001011100101
2. you split it in pairs 00 10 11 10 01 01
3. you keep only pairs with a zero and a one in them 10 10 01 01
4. You assign 0 and 1 to them, e.g. 1 1 0 0, this is a fair sampling from an unbiased coin
Why does it work? Because even if p(0) ≠ p(1), p(01) = p(10).
Hey HN! Creator here. Sorry for the downtime and dizzying spinning coins.
I was surprised to see this on the frontpage this morning and the scale is pushing the limits of our quantum randomness generator
It should be working again now as I'm pushing fixes. Thanks for your patience.
quantum physicist here. I code with quantum computers (well, simulators most of the time) quite a lot.
This is a cool demo and a great first effort, but does it really use IBM's quantum computer? From my experience, the queues are generally quite long and and it takes atleast 10-15 secs from submission to getting your results back. And getting a single bit back is hugely inefficient. My guess is that you are submitting a circuit with hadamard on all the qubits with 1000-10000 shots and storing the results and showing them to people one by one? This might be misleading as you are not actually connected to the ibm quantum computer and generating random numbers in real-time.
Plus, since the ibm quantum comptuers exhibit a lot of noise, you are not getting truly random numbers. A better introduction to generating random numbers and also certifying them is available: https://github.com/dorahacksglobal/quantum-randomness-genera...
You can play with this on qBraid.com and try out even more quantum computers. We actually used this as a hackathon challenge at South Carolina Hackathon. Keep on building and join us at future events!
A few years ago I heard a story on NPR about someone who built a site that also used the IBM quantum backend. They had you input a question about what you should do with your life (I think the example was "Should I grow a beard?"). Then the quantum backend would give you a yes or no answer.
The idea here is that if you believe the many worlds interpretation then that quantum decision splits the universe in two, and in one universe you grow a beard, and in the other you don't.
I thought it was a fun idea.
Considering this states its talking to an actual quantum computer somewhere(at least that's what I'm led to believe by the "Connected to <some instance somewhere>" in the bottom right), I'd imagine this has gotten hugged to death, and hence why we are only seeing the spinning coins rather than it actually resolving.
As someone that has basically zero background in quantum, is there some kind of "aha" thing I'm supposed to observe here?
The details for what a quantum coin flip is has the description "your friends will think you're a wizard."
Why? I certainly don't think I'm a wizard right now.
When I click the coin I see an animation of 7-8 blurry coins spinning. Further clicking seems to have no effect. Is something else supposed to happen?
It's not true that computer randomness is predictable, all recent computers have entropy sources which are essentially quantum in nature - thermal noise.
Thank you for sharing!
As a small remark, classical and quantum coins are equally susceptible to bias. So the initial intro is a bit misleading.
Nice idea, but watching the spinning coins made me a bit nauseous. I had to go away from the page.
I watched how it works, but it seems the rotation is just an animation and a fake. There are two requests: /flip and /info. When you click mouse button, the /flip request is GET immediately and it returns a result of 1(eagle) or 0. After that the coin animation begins with requests to /info which always returns the same response for no clear reason. After several /info requests the coin eventually stops without receiving any new results.
$ curl https://quantum.orgsoft.org/info
{"status":"ok","message":"Connected to IBM Eagle r3 (127 qubits)","display_name":"Eagle r3 (127 qubits)","alias":"ibm_kyiv","version":"1.20.22","num_qubits":127,"processor":"Eagle r3","url":"https://quantum.ibm.com/services/resources?system=ibm_kyiv"}
$ curl https://quantum.orgsoft.org/flip
1
I just see a bunch of spinning coins forever and nothing happens with no way to stop it...
Quantum logic gate > Universal logic gates: https://en.wikipedia.org/wiki/Quantum_logic_gate#Universal_q...
From https://news.ycombinator.com/item?id=37379123 :
> [ Rx, Ry, Rz, P, CCNOT, CNOT, H, S, T ]
From https://news.ycombinator.com/item?id=39341752 :
>> How many ways are there to roll a {2, 8, or 6}-sided die with qubits and quantum embedding?
From https://news.ycombinator.com/item?id=42092621 :
> Exercise: Implement a QuantumQ circuit puzzle level with Cirq or QISkit in a Jupyter notebook
ray-pH/quantumQ > [Godot] "Web WASM build" issue #5: https://github.com/ray-pH/quantumQ/issues/5
I've wondered for a long time what the user experience for quantum computing will look like. I had imagined some library with a type for "qbit" and an dsl for making them interact in certain ways and then some kind of async thing where your classical code could run locally while periodically shuttling data to and from wherever the quantum computer is.
This isn't quite that but I guess it's a first step.
Question from someone who's not going to even pretend to understand quantum physics..
The explanation says the visualization shows the coin in all possible states. I'm trying to count quickly and it seems like about 8. Does all possible states mean there's an infinite number and 8 are shown for visualization purposes, or is there a finite predictable number of possible states.
My observation is too weak, the coins keep spinning.
Maybe I am so disconnected from the rest of reality, I count as absolute, non destructive observer?
This seems to do roughly the same as the Universe Splitter [0]. (Which used to be free? Not sure.)
[0] https://cheapuniverses.com/
Earlier discussion: https://news.ycombinator.com/item?id=30499169
In the many worlds interpretation, if one connected this computer to a machine that would instantly kill you if the result was heads, you as the observer should find that you never die, but rather that the machine always seems to come up tails. Is that correct? Might be cool for some kind of euthanasia patient to experience.
The animation reminds me me of https://en.wikipedia.org/wiki/Devs_(TV_series)
A physical coin is biased?
Cool idea! This is a really clever way to demo a real-world circuit!
Is this truly live or did they batch random numbers ahead of time?
from the console
> Failed to get quantum result from server
cloudflare connection timed out
I wonder what the cost of running this website is?
Got 2 tails in a row. Must be broken.
_real_?
Tangent, but interesting: how do you get fair samples from a biased coin? 1. You take a string of biased samples like 001011100101 2. you split it in pairs 00 10 11 10 01 01 3. you keep only pairs with a zero and a one in them 10 10 01 01 4. You assign 0 and 1 to them, e.g. 1 1 0 0, this is a fair sampling from an unbiased coin
Why does it work? Because even if p(0) ≠ p(1), p(01) = p(10).
[dead]