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


  1. Luciano Bello on April 9, 2020 at 2:51 pm

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

  2. Paras Regmi on April 9, 2020 at 2:51 pm

    Please more videos on Quiskit.

  3. Hshhsj Hahsvs on April 9, 2020 at 2:51 pm

    I feel like am in 2050 when am on this channel

  4. Alpha Delta on April 9, 2020 at 2:53 pm

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

  5. poop catapult on April 9, 2020 at 2:56 pm

    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.

  6. SeeSoftware on April 9, 2020 at 2:56 pm

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

  7. Sahaj Raj Malla on April 9, 2020 at 2:57 pm

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

  8. Conium Maculatum on April 9, 2020 at 2:58 pm

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

  9. Santosh A on April 9, 2020 at 2:59 pm

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

  10. AtkrsH on April 9, 2020 at 3:02 pm

    m getting this error—–
    except : qubit_count = "simulated"
    SyntaxError: invalid syntax

  11. Karthikeyan S on April 9, 2020 at 3:04 pm

    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..

  12. Aman Nirala on April 9, 2020 at 3:05 pm

    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.

  13. Zaleucus on April 9, 2020 at 3:08 pm

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

  14. gomenaros on April 9, 2020 at 3:09 pm

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

  15. Dark Greninja on April 9, 2020 at 3:09 pm

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

  16. MadmanWithPie on April 9, 2020 at 3:09 pm

    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?

  17. dba commons on April 9, 2020 at 3:14 pm

    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.

  18. excited box on April 9, 2020 at 3:14 pm

    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.

  19. Daniel Ro on April 9, 2020 at 3:15 pm

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

  20. Timur the_Hacker on April 9, 2020 at 3:15 pm

    i have a transpile error

  21. s g on April 9, 2020 at 3:15 pm

    Me: what’s your IQ?
    sentdex: Yes

  22. illidur on April 9, 2020 at 3:16 pm

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

  23. Dark Greninja on April 9, 2020 at 3:17 pm

    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

  24. Rohit J on April 9, 2020 at 3:17 pm

    zoom in !!

  25. Kaison Toro on April 9, 2020 at 3:18 pm

    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!

  26. Adam Thomas on April 9, 2020 at 3:19 pm

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

  27. tetlamed on April 9, 2020 at 3:21 pm

    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!

  28. tom spritzer jr on April 9, 2020 at 3:21 pm

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

  29. Zaleucus on April 9, 2020 at 3:22 pm

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

  30. mustafa esoofally on April 9, 2020 at 3:25 pm

    can we run ml on qiskit???

  31. Shyam Kumar on April 9, 2020 at 3:26 pm

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

  32. a b on April 9, 2020 at 3:26 pm

    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!

  33. VAMBRIC on April 9, 2020 at 3:29 pm

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

  34. Anonymous on April 9, 2020 at 3:30 pm

    ah man where was i all these time ..

  35. Carlos Segura on April 9, 2020 at 3:30 pm

    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 👨‍💻

  36. suman c on April 9, 2020 at 3:31 pm

    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.

  37. Sanjay Karavadara on April 9, 2020 at 3:34 pm

    What after quantum computer

  38. Aman Nirala on April 9, 2020 at 3:34 pm

    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).

  39. Tanmay Deshpande on April 9, 2020 at 3:35 pm

    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 ??

  40. Hart Storm on April 9, 2020 at 3:37 pm

    Do a pyglet intermediate tutorial

  41. Kareem Jeiroudi on April 9, 2020 at 3:38 pm

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

  42. Alex T01 on April 9, 2020 at 3:39 pm

    How old are you

  43. Aman Nirala on April 9, 2020 at 3:39 pm

    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.

  44. Kenan Arik on April 9, 2020 at 3:41 pm

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

  45. Sanjay Karavadara on April 9, 2020 at 3:42 pm

    What if quantum computer in mars no heat .

  46. Mohammed Abou Hassan on April 9, 2020 at 3:43 pm

    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

  47. Greg Bystroff on April 9, 2020 at 3:44 pm

    Well done, Sentdex! I’m loving it!

  48. Greg Bystroff on April 9, 2020 at 3:47 pm

    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.

  49. Marvin Desmond on April 9, 2020 at 3:49 pm

    Right when I thought Sentdex had exhausted all of the best progamming languages!!!
    Hits my face with Quantum programming………………………………………………………..