Quantum Machine Learning
Key Takeaways
The video discusses the principles of quantum mechanics and its application to machine learning, introducing concepts such as superposition, entanglement, and quantum computing, and exploring their potential to accelerate machine learning and advance towards artificial general intelligence, using tools like qubits and quantum processors.
Full Transcript
sir how do we solve this unleash the quantum hello world it's Suraj in quantum machine learning it sounds like the final class in a ph.d program doesn't it in this video I'll demonstrate a few examples of how both quantum computing and machine learning can be used together to solve some really hard problems but before we go there we need to get more familiarized with the field of quantum mechanics this is the collection of scientific laws that describe the behavior of subatomic particles an endlessly fascinating subject that's been notoriously difficult to master and somewhat controversial even for physicists it all started in the 17th century when scientists were trying to figure out the properties of light and rocking crazy facial hair at first Isaac Newton thought that light only consisted of tiny particles Christian Huygens thought it was made up of waves but Newton became puzzled by the wave-like phenomena of light interference interference is when two waves superpose to form a resulting wave of greater lower or the same amplitude it turned out they were both right and this resulted in the wave theory of light which states that light is both made up of tiny particles and made up of waves vibrating up and down perpendicular to the direction that it travels Einstein later discovered that these tiny particles called photons consist of energy inspired by this Niels Bohr came up with a new model for an atom the basic unit of all matter in the universe his model stated that an atom contains a small positively charged nucleus surrounded by electrons that travel in circular orbits around each other like a solar system each orbit has its own energy level and changes to that energy like the transition of an electron from one orbit to another around the nucleus of an atom happens in discrete quanta the phrase quantum leap refers to the movement from one discrete energy level to another with no transition its abrupt Bohr realized that because the movement of an electron was not progressive it just disappeared from one orbit and appeared in the next orbit with no intermediary state the amount of energy at that level couldn't be further subdivided that's why he called it quanta a minimum quantity of energy clearly scientists were beginning to figure out that the rules of classical mechanics did not apply at the sub atomic level but it gets even more interesting simulation confirmed consider the question why doesn't an electron have an intermediate state physicist Lewis de Brawley answered that question when he explained that matter can exhibit both particle and wave-like nature just like light this wave-like nature of electrons requires them to obtain certain wavelengths which are allowed for them to fit in an orbit and within that orbit electrons can exist throughout not just in a single spot because of its wave-like nature other physicists were paying attention to this and contributed more discoveries Heisenberg not the breaking bad one for example later proposed his uncertainty principle which stated that the position and velocity of a particle cannot both be measured exactly at the same time even in theory he later helped develop the Copenhagen interpretation of quantum mechanics which stated that a quantum particle doesn't exist in one state or another instead it's in all of its possible States simultaneously it's only when we observe this state that a quantum particle is forced to choose one probability and that's the state we observe that's right it's stating that reality exists in a certain way until we measure it it's reactive to conscious observation pretty incredible stuff this state by the way of existing in all possible states simultaneously is called superposition the Copenhagen interpretation of quantum mechanics was theoretically proven by a famous thought experiment called Schrodinger's cat in this thought experiment a physicist puts a cat in a box along with some radioactive material and a device for detecting radiation the device is designed so that when it senses the decay of the material it triggers a hammer which will break a flask containing acid which will kill the cat evil AF but to eliminate any certainty about the cat's fate the experiment takes place within an hour long enough so some of the radioactive material could decay short enough so that it's also possible none could while the cat is sealed in the box it comes to exist in an unknowable State it can't be observed so it instead exists in a superimposed state of both life and death until we open the box and observe the cat it has half a probability of being dead and half a probability of being alive the state of the cat is tied to its situation and can be considered a form of quantum entanglement this is a phenomena by which the quantum states of two or more objects can be described in reference to each other you can't describe the state of one without referencing the other and that same property applies even when these particles are separated by any amount of space Einstein called this spooky action at a distance clearly quantum mechanics is awesome and there are a lot of different interpretations of it even though the Copenhagen interpretation is the most popular TLDR the laws of nature at the sub atomic level are different than at any other level so how can we leverage this to possibly solve some hard problems about 40 years ago the popular physicist Richard Fineman proposed that in order to be able to simulate physics on a machine properly that includes the laws of both classical and quantum mechanics we'd need to create a kind of quantum computer classical computers the ones we all use perform operations using classical bits which are represented as binary data either a 0 or a 1 but what if we could have a bit represent both 1 and 0 at the same time what happens then what quantum mechanics tells us that this kind of superposition of both states is indeed possible at the subatomic level the basic unit of a quantum computer is called a qubit these qubits can be physically represented by quantum particles that can occupy two states simultaneously we could use a photon or an electron and rather than having these qubits interact how classical bits do we can leverage the idea of quantum entanglement to allow these qubits to interact with each other in all new interesting ways nowadays big technology companies like IBM Google and Microsoft as well as well funded startups like we're getting computing are all racing to build these exotic machines to see how we can use the quantum concepts of superposition and entanglement to both speed up existing algorithms and create entirely new classes of algorithms this involves a lot of computer science theory across a lot of different subfields but let's specifically talk about its effect on machine learning firstly quantum devices can be used to accelerate machine learning current quantum technologies resemble special purpose hardware like Asics rather than the general purpose CPU they're hardwired to implement a limited class of quantum algorithms more advanced quantum devices can be programmed to run simple quantum circuits just like FPGAs we know that both Asics and FPGAs offer benefits in machine learning as well as GPUs CPUs and GPUs therefore a quantum processor could theoretically be added to this mix of specialized AI hardware to help us advance towards AGI by creating an entirely new field of machine learning similar to how GPUs contributed to the deep learning Renaissance that started a couple years ago interestingly it turns out that mathematical optimization is an important task in quantum mechanics just like it is in machine learning physicists are interested in finding the point of lowest energy in a high dimensional energy landscape in fact one of the first tasks for quantum computers orchestrated by the company d-wave involved optimization their quantum annealer was used to solve classification tasks more recently the hybrid quantum classical technique of variational circuits has been proposed where a quantum device is used to evaluate a hard to compute cost function while a classical device performs an optimization based on this information and what about those massively parallel i's matrix multiplication operations that neural networks require GPUs for well in quantum computing the bottleneck to doing this is data encoding in order to use them for linear algebra we have to first load the large matrix onto the quantum device which is non-trivial but a quantum gate does execute a multiplication of an exponentially large matrix with a similarly large vector we could even think of a quantum gate as a linear layer of a giant neural net an exciting insight that could lead to novel neural architectures there's also the idea of sampling we can think of quantum computers as samplers that prepare a class of distributions called quantum states and sample from them with measurements we could explore how samples from quantum devices can be used to train machine learning models sample based training for Boltzmann machines is one example another idea is kernel evaluation kernel methods use machine learning models based on a distance measure between data points called a kernel quantum devices can be used to estimate certain kernels including the ones hard to compute classically by estimating the inner products of two high dimensional quantum states so the estimates from a quantum device can be fed into a standard kernel method like a support vector machine although inference and training are done classically they can be augmented with the quantum device so we can think of the first generation of quantum computers has partially programmable special-purpose devices that can accelerate certain tasks in machine learning just like GPUs did for deep learning quantum computers can help speed up some existing machine learning models allow for the creation of never before possible models and likewise machine learning can help quantum devices learn new quantum algorithms rather than having researchers try to figure them out themselves lots of work is happening right now in this field and if you want you can try out your own quantum algorithm on both real and simulated quantum devices links will be in the video description thanks so much for watching my video hit subscribe and I'll come visit you and your dreams tonight for now I've got to get this entangled so thanks for watching
Original Description
Quantum computers are mind bogglingly powerful machines that take a novel approach to processing data. Built on the principles of quantum mechanics, they utilize complex and fascinating laws of nature that are always there, but usually remain hidden from view like superposition and entanglement. In this video, i'll talk about the intersection of quantum computing and machine learning. Specifically, we'll discuss the examples of quantum annealing, sampling, and quantum gates as layers in a neural network. We'll first try to cover quantum mechanics though, get hype!
Code for this video:
https://github.com/llSourcell/quantum_machine_learning
Please Subscribe! And like. And comment. That's what keeps me going.
Want more education? Connect with me here:
Twitter: https://twitter.com/sirajraval
Facebook: https://www.facebook.com/sirajology
instagram: https://www.instagram.com/sirajraval
This video is apart of my Machine Learning Journey course:
https://github.com/llSourcell/Machine_Learning_Journey
More learning resources:
https://github.com/krishnakumarsekar/awesome-quantum-machine-learning
https://hackernoon.com/how-quantum-computing-machine-learning-work-together-bc61d0f1b3a
https://www.kdnuggets.com/2018/01/quantum-machine-learning-overview.html
https://medium.com/xanaduai/quantum-machine-learning-1-0-76a525c8cf69
https://www.rolandberger.com/en/Point-of-View/The-next-big-thing-Quantum-machine-learning.html
https://www.rigetti.com/products
Join us in the Wizards Slack channel:
http://wizards.herokuapp.com/
Learn more about the School of AI:
https://www.theschool.ai
And please support me on Patreon:
https://www.patreon.com/user?u=3191693
#SirajRaval #Quantum #MachineLearning
Signup for my newsletter for exciting updates in the field of AI:
https://goo.gl/FZzJ5w
Hit the Join button above to sign up to become a member of my channel for access to exclusive content! Join my AI community: http://chatgptschool.io/ Sign up for my AI Sports betting Bot, WagerGPT! (5
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Siraj Raval · Siraj Raval · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
What is Bitcoin?
Siraj Raval
5 Ways to Use Bitcoin
Siraj Raval
BTC Fever - Siraj [Music Video]
Siraj Raval
5 Reasons to Build Decentralized Apps
Siraj Raval
The Interplanetary File System
Siraj Raval
How to Build a Dapp in 3 min
Siraj Raval
Life Before Smartphones
Siraj Raval
4 Ways to Use Smart Contracts
Siraj Raval
3 Dapps You HAVE to See
Siraj Raval
Char's Life as a BitTorrent Engineer
Siraj Raval
4 Reasons AlphaGo is a Huge Deal
Siraj Raval
Build a Neural Net in 4 Minutes
Siraj Raval
Sentiment Analysis in 4 Minutes
Siraj Raval
The Hackathon Life
Siraj Raval
Your First ML App - Machine Learning for Hackers #1
Siraj Raval
Build an AI Composer - Machine Learning for Hackers #2
Siraj Raval
Build a Game AI - Machine Learning for Hackers #3
Siraj Raval
Build a Movie Recommender - Machine Learning for Hackers #4
Siraj Raval
Build an AI Artist - Machine Learning for Hackers #5
Siraj Raval
Build a Chatbot - ML for Hackers #6
Siraj Raval
Build an AI Reader - Machine Learning for Hackers #7
Siraj Raval
Build an AI Writer - Machine Learning for Hackers #8
Siraj Raval
Build a Chatbot w/ an API - ML for Hackers #9
Siraj Raval
One-Shot Learning - Fresh Machine Learning #1
Siraj Raval
Generative Adversarial Nets - Fresh Machine Learning #2
Siraj Raval
Tone Analysis - Fresh Machine Learning #3
Siraj Raval
Generate Rap Lyrics - Fresh Machine Learning #4
Siraj Raval
Build an Autoencoder in 5 Min - Fresh Machine Learning #5
Siraj Raval
Build a Self Driving Car in 5 Min - Fresh Machine Learning #6
Siraj Raval
Build an Antivirus in 5 Min - Fresh Machine Learning #7
Siraj Raval
TensorFlow in 5 Minutes (tutorial)
Siraj Raval
Build a Recurrent Neural Net in 5 Min
Siraj Raval
Build a Simulation in 5 Min
Siraj Raval
Build a TensorFlow Image Classifier in 5 Min
Siraj Raval
Tensorboard Explained in 5 Min
Siraj Raval
Generate Music in TensorFlow
Siraj Raval
Build a Game Bot (LIVE)
Siraj Raval
Deep Learning Frameworks Compared
Siraj Raval
Introduction - Learn Python for Data Science #1
Siraj Raval
Build a Neural Network (LIVE)
Siraj Raval
Twitter Sentiment Analysis - Learn Python for Data Science #2
Siraj Raval
Recommendation Systems - Learn Python for Data Science #3
Siraj Raval
Predicting Stock Prices - Learn Python for Data Science #4
Siraj Raval
Pong Neural Network (LIVE)
Siraj Raval
Deep Dream in TensorFlow - Learn Python for Data Science #5
Siraj Raval
Visualizing Data with D3.js (LIVE)
Siraj Raval
Genetic Algorithms - Learn Python for Data Science #6
Siraj Raval
Enter Siraj [Music Video]
Siraj Raval
Build a Web Scraper (LIVE)
Siraj Raval
Why is P vs NP Important?
Siraj Raval
How to Make a Neural Network (LIVE)
Siraj Raval
How to Make an Amazing Tensorflow Chatbot Easily
Siraj Raval
How to Make an Amazing Video Game Bot Easily
Siraj Raval
How to Make a Tensorflow Neural Network (LIVE)
Siraj Raval
How to Make a Simple Tensorflow Speech Recognizer
Siraj Raval
Joel Shor - Really Quick Questions with an Awesome Google Engineer
Siraj Raval
How to Make a Path Planning Algorithm Easily (LIVE)
Siraj Raval
The Best Way to Prepare a Dataset Easily
Siraj Raval
Catherine Olsson - Really Quick Questions with an OpenAI Engineer
Siraj Raval
How to Make a Tic Tac Toe Neural Network Easily (LIVE)
Siraj Raval
More on: LLM Foundations
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
How to Learn a Hard Technical Skill Without Burning Out
Dev.to · Anas Kalthoum | FreeBrain
After interviewing over 100 ML Candidates. Last Week Someone Walked In and Made Me Take Notes.
Medium · Machine Learning
How AI Learns with Less Labeled Data
Medium · Machine Learning
Mastering TypeScript — Understanding the TypeScript Compiler (tsc) from Scratch — Lesson 2
Medium · JavaScript
🎓
Tutor Explanation
DeepCamp AI