r/QuantumComputing • u/gilluc • Apr 04 '21
On march 31st, I made my first quantum program (be kind)
6
u/ajrasm Apr 04 '21
Wait... these results don't make sense haha. A Hadamard and CNOT gate like that should give you (000 + 011)/sqrt(2) (50% probability of measuring 000 or 011)
1
u/gilluc Apr 05 '21
I know...I just start QC.
2
u/bsiegelwax Apr 05 '21
It must've run only 1 shot. QC is probabilistic, so you have to select one of the higher shot counts. You should then see the roughly 50/50 results.
Without getting into optimization here, you can also change the registers from 3 to 2 to clean up the circuit diagram and the histogram a bit.
2
u/roo_sado Apr 05 '21
Those are not the results, that's just the expected outcome from the circuit, he actually didn't run the circuit at all.
It is not showing 50/50 because he introduced measurements, so the circuit composer tries to give some expected outcome taking that 50/50 into account.
1
u/gilluc Apr 05 '21
Yes I made the screenshot just before running the program on 1024 shots. 5 run per day are free but you have to wait after 200 to 500 priority users..☹️
2
u/bsiegelwax Apr 06 '21
You can have 5 in the queue at the same time, but there is no limit to how many free circuits you can run per day. These days, in fact, I think you can have 5 per queue per device.
2
2
u/Lakshmiey Apr 05 '21
Congratulations for your work! How old are you?
5
u/gilluc Apr 05 '21
60...does that matter? I started in 1981 with IBM 360 assembler...
3
u/btrazvan Apr 05 '21
Interests and passions have no age. It doesn`t matter as long as you enjoy what you are doing!
1
u/Lakshmiey Apr 06 '21
Absolutely it doesn’t matter in terms of achievements!!! However as an ignorant mom I was just curious when, how and how much effort it takes to write a quantum program. Well Done again!
2
u/LavishManatee Apr 05 '21
Nice job!! It is hard to find people to share this with, I can see from the comment section that others feel this way too.
QC is just beginning and the barrier to entry is much higher than traditional computers. We are a small group now, but it always excites me to see things like this. Keep going!
1
1
u/NotSoChildishRubino Apr 05 '21
Just to be sure try to aply the |o} gate to all 3 Quits before the Hadamard and the CNOT... Just to be sure they start as 00.
0
-4
0
Apr 04 '21
[deleted]
2
u/gilluc Apr 05 '21
I just wanted to give people an idea of how you can do quantum computing. I think it is not mainstream, is'nt it?
8
u/rmphys Apr 04 '21
How do you find meetups in your local area. I don't think there are many on meetup for quantum computing, even in super techy areas.
6
u/DeadInsideOutside Apr 05 '21
I kinda agree that this is a very "reddit thing" to do, but I also don't think it's such a big deal to go along with a newcomer's excitement. I get the feeling and I doubt it comes from a bad place.
2
u/ripperroo5 Apr 05 '21
He's trying to find people to share his feelings of success with, it's that simple. It's not why this sub is here, but don't kid yourself he's gonna be able to find a 'meet up' in his local area, lol.
13
u/roo_sado Apr 04 '21
It's great that you're taking interest in QC. I understand your excitement as even the most basic elements of quantum algorithms can be very unintuitive.
I recommend checking out Quantum Country, it's a great resource to learn more.
Entanglement is the first step, and there's endless knowledge ahead. Keep at it.