# Quantum Computer Programming w/ Qiskit

Quantum Computer Programming w/ Qiskit

A practical and applied introduction to quantum computer programming, using IBM’s free cloud-based quantum machines and Qiskit.

Part 2: https://www.youtube.com/watch?v=lB_5pC1MkGg

Text-based tutorials and sample code: https://pythonprogramming.net/quantum-computer-programming-tutorial/

IBM Quantum Computing: https://quantum-computing.ibm.com/

pip install qiskit numpy jupyterlab matplotlib qiskit-ibmq-provider

Qiskit slack channel: https://app.slack.com/client/T7RSPHKK2/C7SJ0PJ5A

Python 3 Basics tutorials: https://pythonprogramming.net/introduction-learn-python-3-tutorials/

Channel membership: https://www.youtube.com/channel/UCfzlCWGWYyIQ0aLC5w48gBQ/join

Discord: https://discord.gg/sentdex

Support the content: https://pythonprogramming.net/support-donate/

Twitter: https://twitter.com/sentdex

Instagram: https://instagram.com/sentdex

Facebook: https://www.facebook.com/pythonprogramming.net/

Twitch: https://www.twitch.tv/sentdex

#quantumprogramming #quantum #qiskit

25:30 I wrote the ascii drawer. Thanks for your words 🙂

Please more videos on Quiskit.

I feel like am in 2050 when am on this channel

It really is incredible that if you have the desire and drive you can program a *quantum computer for free via the cloud.

The "both 0 and 1" thing can easily be visualized by simple linear algebra. Think a coordinate system with x and y axes. A vector can then be described by a "superposition" of each basis vector, like v = a*e_x + b*e_y.

Say e_x describes the 0 state and e_y the 1 state. The only things missing are using complex numbers instead of reals and normalizing the vector to length 1.

i could imagen quantum bits being implemented as a "co-processor" for your classical computers

What are the skills or knowledge required to jump into this tutorial, brother ?

2:40 The concept of Schrödinger’s cat.

Did not reveal what the mug actually contained, now I understand superposition.

m getting this error—–

except : qubit_count = "simulated"

^

SyntaxError: invalid syntax

I just came here to see what is the latest technology that Sentdex is speaking about. So, Quantum Computing skill will be a wanted one, after an year or so..

Hey bud I think you should fix this video, there are few basic and important concepts not explained precisely. This would result in people making wrong intuition about those concepts and this would be a big trouble for them in future if they want to work more into it.

14:18 lol you got so excited when you realized you could use the word entangled.

Harrison, can you do fusion tutorials next? Thanks, I ‘d appreciate.

just sitting in quarantine learning quantum computing lol. do you have any suggestions on where to go after this series to learn more?

Wouldn’t quantum computers, being able to instantly consider all possible inputs, actually be able to solve most classical computer problems much faster? Couldn’t any kind of switch-case statement be computed instantly with a quantum computer? The only advantages classical computers hold over quantum computers is clock speed, and amount of bits, no?

quoth ]03:45+009s[ all I can say is we have these two properties, how we have them…

save ]08:10+009s[ classical simulates probability, quantum is probability

I think that’s the interesting aspect of quantum programming. It assumes an abstraction at the core base. The very fact that we can simulate it is fascinating, but seeing the oracle demo and hearing the open source community is at the core is awesome. Great video btw, actually a really good introduction to Quantum Computing for those just learning.

The best example for entanglement is the glove analogy. If you have 2 boxes and 1 glove of a pair in each. You only need to open 1 box to know which glove is in the other box and it doesn´t matter where the other box is. So if the first box has the right hand glove in it the other box must have the left handed glove. Even if that box is on the moon you know that it contains the left glove.

4:41 "classical computers can store 2n states" – i think this might be a mistake. classical computers can store 2^n states.

i have a transpile error

Me: what’s your IQ?

sentdex: Yes

The processor temperature is close to 0, like my understanding of how it works.

at 42:11 I get 4 result, though the highest ones are 00 and 11. Why is this? I am running it on ibmq_essex

nevermind i ran it on an actual thing so yeah

zoom in !!

ATTENTION if you tried to install qiskit and got an error make sure to type –user at the end of the line and have a great day!

I laughed at the entangled joke that was so bad it was funny

List of factual problems here:

1. At 1:32 you say that a 0 is low and a 1 is high. Often (e.g. in flash memory) this is reversed

2. At 1:59 you say that two characteristics define a quantum system, superposition and entanglement. In actuality, a number of characteristics define a quantum system, you just cherry picked your favorite two

3. At 3:05 you say, "if 2 qubits are entangled, a change in one causes a change in another one…" A change in one doesn’t *cause* anything, any more than checking the weather *changes* the weather so it’ll be different when your friend checks it. The qubits were always going to read connected information, there’s no cause and effect about it, though admittedly this is rather nuanced and can be confusing at first

4. At 4:10 you correct yourself to say that a qubit can have one of three states, zero, one, or both. A qubit can represent any state between zero and one, so infinitely many states per bit, though this amounts to far less computation power than you’d think after collapse

5. At 4:36, you say a classical computer can represent 2 * n states. This is sort of true, though discussed below by Daniel Ro

6. At 42:28, you say it’s simulating a perfect quantum machine and therefore lacks noise. Take a look at that chart and tell me there’s no noise

Overall, this video does a pretty great job at demonstrating how to use a quantum computer, but not how to get a quantum computer to do something useful. If only you had gone over using quantum computing to solve actual problems, even if those problems are more efficiently solved by a classical computer with today’s quantum computers, this would have been extremely useful. Quantum algorithms!

yeah lets try it for real… tired of their explaining,,, lets see some code

What’s the u for in qubit? I had always heard them called qbit for "quantum bit".

can we run ml on qiskit???

when I tried to upgrade it is showing unrecognised option ‘–upgrade’

I am so grateful to you. Next semester I am going to attend a class on quantum computing. I am double majoring in Math CS. Seriously, since it’s a new course, nobody knows what we will be doing. This video will be surely very useful for me and my classmates in the near future. Again, thank you!

https://medium.com/@buddha0/qsangate-quantum-language-evolution-mapping-sanskrit-as-quantum-language-6c594215c21a

brau i’m more confused after watching the video. I think i’ll stick to java right now.

ah man where was i all these time ..

Wow, I just noticed how you are using Ubuntu as your default! As a developer, once you go with Linux you can’t go back to Windows or macOS 👨💻

Thank you for the tutorial. Nice work by IBM, something deeply innovative by them after a long time.

The bar plots with 4 possibilities with 1,1 being the highest gave me goosebumps. Amazing.

What after quantum computer

Its more like, if you have 2 bits and 2 qubits, with both you will have max of 2^n states i.e. 00, 01, 10, 11. Now if you use a qit, at a particular time you can have the staes like 00 or 01 or 10 or 11 thus the complexity would be O(n) to use all the states. But if you use a qubit and put it in the superposition of it being |0> or |1> you will have probability of the qubits being 0 or 1 at the same time, this will result in quantum parallelism and the complexity of representation of all the states would be O(log_2 n).

i had a question. I am creating a dataset where i want to label the dataset as A or B. However this labelling of dataset is going to depend on the textual data which is one of the features of the dataset. So should i use ONE HOT ENCODING or LABEL ENCODING or should i just manually add a column and then consider as a label ??

Do a pyglet intermediate tutorial

Corey Schafer is awesome! With guys like you two, Youtube is becoming a much more interesting platform.

How old are you

Nonono… the explanation of entanglement is absurd… it doesn’t cause a change… when you measure one of the entangled qubits or a quantum subsystem, it will give you the certainty about the state of the other qubits if measured at the same time irrespective of their local system. This was the basis of the formation of the EPR Paradox which Einstein believed would prove the Quantum theory absurd with respect to Werner Heisenberg’s Uncertainty Principle.

LOL "everything quantum sounds cooler, quantum noise.." @ 38:40

What if quantum computer in mars no heat .

Could you please elaborate on "I am not an expert on quantum STUFF, no body truly is… " at 0:21 because this is when I had to stop watching your video! Just fyi every Physics undergrad or postgrad knows a LOT about quantum STUFF! good luck buddy

Well done, Sentdex! I’m loving it!

You offer a good stab at quantum theory. To learn more, study your entire life and then forget all you know as it was all wrong. Then you will understand quantum.

Right when I thought Sentdex had exhausted all of the best progamming languages!!!

Hits my face with Quantum programming………………………………………………………..