How do quantum computers work?

rosie93

Somewhere in Osaka
Joined
Nov 1, 2015
Messages
858
Reputation
-1,160
Daps
1,929
I've been trying to learn a little bit of quantum computing, but I'm having a hard time understanding the concept of superposition, and how quantum computers use the concept to create more complicated code. For example in a normal computer one bit can be represented by a 1 or 0 at the machine code level, so once you write your code you will use logic such as: if( true or false) ....

How does that apply with quantum computers though? Apparently one quantum bit can be BOTH 0 and 1 at the same time? How does that translate to code?
 

Ethnic Vagina Finder

The Great Paper Chaser
Joined
May 4, 2012
Messages
57,028
Reputation
2,488
Daps
161,296
Reppin
North Jersey but I miss Cali :sadcam:
I've been trying to learn a little bit of quantum computing, but I'm having a hard time understanding the concept of superposition, and how quantum computers use the concept to create more complicated code. For example in a normal computer one bit can be represented by a 1 or 0 at the machine code level, so once you write your code you will use logic such as: if( true or false) ....

How does that apply with quantum computers though? Apparently one quantum bit can be BOTH 0 and 1 at the same time? How does that translate to code?


All computer code is breh is instructions. That’s it. Quantum computers can simply handle a lot more volume, and complexity of instructions than a normal computer.

or even more simply put, you can tell a quantum computer to do a lot more than you could a normal computer and it will get the job done faster.
 

Propaganda

Superstar
Joined
May 1, 2012
Messages
5,605
Reputation
1,380
Daps
18,602
Reppin
416
one of the biggest issues with quantum computing (apart from the physical build of course) is the coding. there is no architecture there, no languages that you can work with and build on like in the classical world.

this isn't the best analogy but we've got ps5's and at this point quantum computers are like atari.
 

rapbeats

Superstar
Joined
Jun 8, 2012
Messages
9,362
Reputation
1,900
Daps
12,858
Reppin
NULL
one of the biggest issues with quantum computing (apart from the physical build of course) is the coding. there is no architecture there, no languages that you can work with and build on like in the classical world.

this isn't the best analogy but we've got ps5's and at this point quantum computers are like atari.
lol horrible analogy.

at the moment we have to use classical computers to talk to quantum computers. because thats the only language we know how to use to speak with the quantum computer to ask it to do things.
 

Ethnic Vagina Finder

The Great Paper Chaser
Joined
May 4, 2012
Messages
57,028
Reputation
2,488
Daps
161,296
Reppin
North Jersey but I miss Cali :sadcam:
I've been trying to learn a little bit of quantum computing, but I'm having a hard time understanding the concept of superposition, and how quantum computers use the concept to create more complicated code. For example in a normal computer one bit can be represented by a 1 or 0 at the machine code level, so once you write your code you will use logic such as: if( true or false) ....

How does that apply with quantum computers though? Apparently one quantum bit can be BOTH 0 and 1 at the same time? How does that translate to code?

This video answers all of your questions breh

 

Hawaiian Punch

umop-apisdn
Supporter
Joined
Apr 30, 2012
Messages
19,050
Reputation
6,969
Daps
83,780
Reppin
The I in Team
@MMS @Hawaiian Punch help this youngin out

Well in a nutshell like OP said computers use bits, 1 and 0. It’s either on or off and computer processes are made by their positions. In the quantum world bits can be both on and off at once. They are called qubits. Or it can be the fuzzy gray area between the two. That’s superposition. Then you get the weird shyt like quantum entanglement, where the position of one of the quibits can somehow influence the position of another quibit at any distance. Those concepts alone are honestly magic, or like Einstein said, “spooky action at a distance”. You could in theory do complex calculations on dna replication and rna synthesis and calculations on the universe that would take a normal computer thousands of years. It truly becomes an unknown with technology like this. We don’t know what we will discover because we don’t have the capacity to discover it. Most likely they will become artificially Intelligent and rule us all. I don’t know.
 

null

...
Joined
Nov 12, 2014
Messages
33,924
Reputation
6,647
Daps
52,323
Reppin
UK, DE, GY, DMV
I've been trying to learn a little bit of quantum computing, but I'm having a hard time understanding the concept of superposition, and how quantum computers use the concept to create more complicated code. For example in a normal computer one bit can be represented by a 1 or 0 at the machine code level, so once you write your code you will use logic such as: if( true or false) ....

How does that apply with quantum computers though? Apparently one quantum bit can be BOTH 0 and 1 at the same time? How does that translate to code?

Good question :wow:

Here at some operations that are built into the "OS" of quantum computers.

Quantum logic gate - Wikipedia

These are the equivalent of logical operations on standard computers.

You use these to build algorithms/

There is a list here:

Quantum Algorithm Zoo

How does that help general computing? If you can map your problem to a QC solution you can take advantage of the speedup.

Algorithm:

Transform your original problem to QC inputs

Init qubit(s)

Do calc (without measuring qubit(s)) - use an Oracle function

Measure qubit(s)

Verify (if possible)

Transform to solution of original classic problem

Verify (if cheap - e.g. NP)

By doing your calc in superposition you move the complexity of the solution further up this table.

FM4AyCjm.png

-

This is a Hello World QC program

How To Solve A Problem With Quantum Computing

This is a good lecture:



-

DWAVE used quantum properties to implement a QC low point landscape function, which could theoretically be used for NP+ hard problems. I'm not sure if they used the above logical QC "instruction set".

-

Like back in the 60's with classical computers, with current QC's you need to understand physics, engineering, math(s) and comp sci :picard:
 

rapbeats

Superstar
Joined
Jun 8, 2012
Messages
9,362
Reputation
1,900
Daps
12,858
Reppin
NULL
they been talking about quantum computers since the 80s

i don't know much about them but what I do know is that as of now they don't exist and it's just future talk
and you would be incorrect. they do exist and the future is now. now with that said, they dont know a lot of what they can do yet either.
 

Ethnic Vagina Finder

The Great Paper Chaser
Joined
May 4, 2012
Messages
57,028
Reputation
2,488
Daps
161,296
Reppin
North Jersey but I miss Cali :sadcam:
and you would be incorrect. they do exist and the future is now. now with that said, they dont know a lot of what they can do yet either.

They have mastered the technological foundation. But not the practical application.

Honestly, I think it could be dangerous. I don’t think society is ready for quantum computing on a large scale. Or AI for that matter. The majority of mankind is scientifically ignorant.

We creating tools for hunting which were immediately used to kill other humans.

We split the atom and immediately built weapons.


So you won’t be seeing laptops and smartphones with quantum chips in them for a long ass time.
 
Top