- Qubits(00:12:00 - 00:15:52) - But what is quantum computing?  (Grover's Algorithm)

- Qubits(00:12:00 - 00:15:52)
But what is quantum computing? (Grover's Algorithm)

Qubits, state vectors, and Grover's algorithm for search.
Instead of sponsored ad reads, these lessons are funded directly by viewers: https://3b1b.co/support
An equally valuable form of support is to share the videos.

The subtitles on this video were done using AI, and are likely imperfect, but...
Qubits, state vectors, and Grover's algorithm for search.
Instead of sponsored ad reads, these lessons are funded directly by viewers: https://3b1b.co/support
An equally valuable form of support is to share the videos.

The subtitles on this video were done using AI, and are likely imperfect, but they are open for community corrections at https://criblate.com/

Adam Brown's paper on the connection between Grover's Algorithm and block collisions:
https://arxiv.org/pdf/1912.02207

If you want to learn the relevant underlying quantum mechanics here, a very friendly resource is the course Mithuna at Looking Glass Universe is currently putting together. See, for instance, this explainer of a qubit:
https://youtu.be/kgSVkVNxXyU

If you want to learn more about the fundamentals of quantum computing, my friends Michael Nielsen and Andy Matuschak put together this wonderful resource, aimed at ensuring long-term memory of core concepts:
https://quantum.country/

BBBV Theorem:
https://www.scottaaronson.com/qclec/23.pdf

Timestamps:
0:00 - Misconceptions
6:03 - The state vector
12:00 - Qubits
15:52 - The vibe of quantum algorithms
18:38 - Grover’s Algorithm
29:30 - Support pitch
30:11 - Complex values
31:27 - Why square root?
34:01 - Connection to block collisions
35:08 - Additional resources

------------------

These animations are largely made using a custom Python library, manim. See the FAQ comments here:
https://3b1b.co/faq#manim
https://github.com/3b1b/manim
https://github.com/ManimCommunity/manim/

All code for specific videos is visible here:
https://github.com/3b1b/videos/

The music is by Vincent Rubinetti.
https://www.vincentrubinetti.com
https://vincerubinetti.bandcamp.com/album/the-music-of-3blue1brown
https://open.spotify.com/album/1dVyjwS8FBqXhRunaG5W5u

------------------

3blue1brown is a channel about animating math, in all senses of the word animate. If you're reading the bottom of a video description, I'm guessing you're more interested than the average viewer in lessons here. It would mean a lot to me if you chose to stay up to date on new ones, either by subscribing here on YouTube or otherwise following on whichever platform below you check most regularly.

Mailing list: https://3blue1brown.substack.com
Twitter:
Instagram: https://www.instagram.com/3blue1brown
Reddit: https://www.reddit.com/r/3blue1brown
Facebook: https://www.facebook.com/3blue1brown
Patreon: https://patreon.com/3blue1brown
Website: https://www.3blue1brown.com
- Misconceptions - But what is quantum computing?  (Grover's Algorithm)

- Misconceptions

But what is quantum computing? (Grover's Algorithm)
2025年04月30日 
00:00:00 - 00:06:03
The video starts with a "mystery function f(n)", and it really looks like a black box algorithm setting. () - But what is quantum computing?  (Grover's Algorithm)

The video starts with a "mystery function f(n)", and it really looks like a black box algorithm setting. ()

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @VincentAubry-hr1ez 様 
00:00:42 - 00:20:30
12 is my favorite number. i am somehow flattered that it's the one that is highlighted. - But what is quantum computing?  (Grover's Algorithm)

12 is my favorite number. i am somehow flattered that it's the one that is highlighted.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @multi_array 様 
00:01:00 - 00:36:54
@ , 42 is always the answer to the universe. THanks for this great video otherwise. - But what is quantum computing?  (Grover's Algorithm)

@ , 42 is always the answer to the universe. THanks for this great video otherwise.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @abhijitborah 様 
00:01:19 - 00:36:54
I'm glad to know the answer at  was 42. It verifies that Hitchhiker's Guide to the Galaxy was a quantum computing primer! - But what is quantum computing?  (Grover's Algorithm)

I'm glad to know the answer at was 42. It verifies that Hitchhiker's Guide to the Galaxy was a quantum computing primer!

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @davidharding1732 様 
00:01:20 - 00:36:54
For a list of N elements, it takes (N+1)/2 attempts on average, not N/2. - But what is quantum computing?  (Grover's Algorithm)

For a list of N elements, it takes (N+1)/2 attempts on average, not N/2.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @onty-op5587 様 
00:01:22 - 00:36:54
as stated at ? If we have N numbers from 0 to N-1 and one of them is the key, the expected value of the number of required guesses is then essentially the same as the average position of the key in the sequence of N numbers, which is (1+2+3+....+N)/N = N(N+1)/(2N) = (N+1)/2. Did I miss something? Thanks again. - But what is quantum computing?  (Grover's Algorithm)

as stated at ? If we have N numbers from 0 to N-1 and one of them is the key, the expected value of the number of required guesses is then essentially the same as the average position of the key in the sequence of N numbers, which is (1+2+3+....+N)/N = N(N+1)/(2N) = (N+1)/2. Did I miss something? Thanks again.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @lm58142 様 
00:01:26 - 00:36:54
Because of this very setup, one can ”improve” almost any algorithm that can be checked in linear time by simply checking all the possible inputs. Bruteforcing a password for example is an O(n) operation. - But what is quantum computing?  (Grover's Algorithm)

Because of this very setup, one can ”improve” almost any algorithm that can be checked in linear time by simply checking all the possible inputs. Bruteforcing a password for example is an O(n) operation.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @catcatcatcatcatcatcatcatcatca 様 
00:01:37 - 00:36:54
going with the video,  as far as I know this depends wildly on the setup you can getwith lowest being around O(1) when you have N qbit device and you can chug entire superspoition through that function and if it can bring one probability to a 100 and rest to 0 it would only need one cycle to preform whole operation but if that probability is just high like 50% of being right and 50% of beign wrong, maybe dependable on N etc. this will elongateand at the other side if the functon isn't very "quantable" or you have very small qbit register or whatever it can go as high as O(n) - But what is quantum computing?  (Grover's Algorithm)

going with the video, as far as I know this depends wildly on the setup you can getwith lowest being around O(1) when you have N qbit device and you can chug entire superspoition through that function and if it can bring one probability to a 100 and rest to 0 it would only need one cycle to preform whole operation but if that probability is just high like 50% of being right and 50% of beign wrong, maybe dependable on N etc. this will elongateand at the other side if the functon isn't very "quantable" or you have very small qbit register or whatever it can go as high as O(n)

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @89alcatraz89 様 
00:02:20 - 00:36:54
omg this is soooooo satisfying to watch and understand-ish - But what is quantum computing?  (Grover's Algorithm)

omg this is soooooo satisfying to watch and understand-ish

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @allthe1 様 
00:02:50 - 00:36:54
About the misconceptions on the speed of quantum computers () : - But what is quantum computing?  (Grover's Algorithm)

About the misconceptions on the speed of quantum computers () :

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @VincentAubry-hr1ez 様 
00:02:55 - 00:36:54
It’s so weird to me that not only people guess this answer, but that it’s the most common guess. - But what is quantum computing?  (Grover's Algorithm)

It’s so weird to me that not only people guess this answer, but that it’s the most common guess.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @picassodilly 様 
00:03:06 - 00:36:54
well its probably also that when one answer is O(1) it sounds like a trick question so „it has to be that“ in the minds of people - But what is quantum computing?  (Grover's Algorithm)

well its probably also that when one answer is O(1) it sounds like a trick question so „it has to be that“ in the minds of people

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @brickisao2999 様 
00:03:06 - 00:36:54
quantum computers can't have exponential speedup, because they are turing complete and can be represented by a turing machine (albeit a ridiculously fast and large one). And if a turing machine can achieve exponential speedup, that would basically mean NP=P which is unproven and highly unlikely to be true. - But what is quantum computing?  (Grover's Algorithm)

quantum computers can't have exponential speedup, because they are turing complete and can be represented by a turing machine (albeit a ridiculously fast and large one). And if a turing machine can achieve exponential speedup, that would basically mean NP=P which is unproven and highly unlikely to be true.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @peppidesu 様 
00:03:20 - 00:36:54
On the topic of why people might guess O(log(n)) (at ): I think you're thinking too much with your math brain, not your CS brain. O(log(n)) is divide-and-conquer style solutions, where you can divide your "problem-space" into smaller and smaller chunks. For this problem, if the quantum chip could say yes or no on if the True value was contained in a set, you could take half of the remaining numbers for each step resulting in O(log(n)). Nearly all sublineair solutions are basically some version of this. - But what is quantum computing?  (Grover's Algorithm)

On the topic of why people might guess O(log(n)) (at ): I think you're thinking too much with your math brain, not your CS brain. O(log(n)) is divide-and-conquer style solutions, where you can divide your "problem-space" into smaller and smaller chunks. For this problem, if the quantum chip could say yes or no on if the True value was contained in a set, you could take half of the remaining numbers for each step resulting in O(log(n)). Nearly all sublineair solutions are basically some version of this.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @markthart2661 様 
00:03:24 - 00:36:54
This actually is no longer correct! As of November 2024 a new variation on Grover’s Algorithm has been created known as the partial oracle Grover’s algorithm that *does* give an exponential speed up, with the caveat of only working sometimes (and other times slowing back down to a polynomial speed up) But for the question of “best possible time complexity” O(log(n)) is actually correct - But what is quantum computing?  (Grover's Algorithm)

This actually is no longer correct! As of November 2024 a new variation on Grover’s Algorithm has been created known as the partial oracle Grover’s algorithm that *does* give an exponential speed up, with the caveat of only working sometimes (and other times slowing back down to a polynomial speed up) But for the question of “best possible time complexity” O(log(n)) is actually correct

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @doriancarter964 様 
00:03:24 - 00:36:54
I was able to guess the right answer because I knew square root can be found in probabiloties from your video with min of 2 dice rolls) - But what is quantum computing?  (Grover's Algorithm)

I was able to guess the right answer because I knew square root can be found in probabiloties from your video with min of 2 dice rolls)

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @vladalex9556 様 
00:03:50 - 00:36:54
The factors of the big number are just first few digits of pi and e - But what is quantum computing?  (Grover's Algorithm)

The factors of the big number are just first few digits of pi and e

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @jay09agarwal 様 
00:03:50 - 00:36:54
i loved when you said that Shor‘s is the most famous example, while it’s actually the *only* relevant problem we know that is exponentially sped up - But what is quantum computing?  (Grover's Algorithm)

i loved when you said that Shor‘s is the most famous example, while it’s actually the *only* relevant problem we know that is exponentially sped up

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @konradv5675 様 
00:03:51 - 00:36:54
I got it right! - But what is quantum computing?  (Grover's Algorithm)

I got it right!

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @Pikasaur42 様 
00:03:55 - 00:36:54
, well ceil(pi/4) is just a fancy name for 1 😛😛😛, didn't you mean something like ceil(pi*sqrt(n)/4)? - But what is quantum computing?  (Grover's Algorithm)

, well ceil(pi/4) is just a fancy name for 1 😛😛😛, didn't you mean something like ceil(pi*sqrt(n)/4)?

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @e-pluszak9419 様 
00:04:30 - 00:36:54
- The state vector - But what is quantum computing?  (Grover's Algorithm)

- The state vector

But what is quantum computing? (Grover's Algorithm)
2025年04月30日 
00:06:03 - 00:12:00
At , it’s interesting that this kind of broke my internal ordering/deviated from what I would have been inclined to do. - But what is quantum computing?  (Grover's Algorithm)

At , it’s interesting that this kind of broke my internal ordering/deviated from what I would have been inclined to do.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @MyopicSquirrel 様 
00:06:26 - 00:36:54
Love how "01000011" is actually 67 and 'C'. Such attention to detail! - But what is quantum computing?  (Grover's Algorithm)

Love how "01000011" is actually 67 and 'C'. Such attention to detail!

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @anothyre4634 様 
00:06:28 - 00:36:54
"[...] teaching computer science without discussing hardware."Fun fact: In German, the term for computer science is "Informatik", which is like mathematics but for information. This word tells you that you can do CS without a machine, it is just about information processing. We just so happen to have machines that are scaringly good at processing information. - But what is quantum computing?  (Grover's Algorithm)

"[...] teaching computer science without discussing hardware."Fun fact: In German, the term for computer science is "Informatik", which is like mathematics but for information. This word tells you that you can do CS without a machine, it is just about information processing. We just so happen to have machines that are scaringly good at processing information.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @s8w5 様 
00:07:07 - 00:36:54
I planned to watch missed Asianometry episodes, but then, bam! This came in! I'm now at  and already i love this video :D - But what is quantum computing?  (Grover's Algorithm)

I planned to watch missed Asianometry episodes, but then, bam! This came in! I'm now at and already i love this video :D

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @bebokRZly 様 
00:08:43 - 00:36:54
"if you kept reading out from memory over and over, you would just keep seeing that same value" I'm afraid that might be incorrect, or at least somewhat misleading. In a quantum system, if you repeatedly measure a register that's in superposition (re-initialized each time to the same state), you'll observe outcomes according to the probability distribution defined by the amplitudes — not always the same value. Perhaps what you meant is: if the system has already been measured and thus collapsed into a definite state, then repeated readings would indeed return the same value — but that's a different scenario :) - But what is quantum computing?  (Grover's Algorithm)

"if you kept reading out from memory over and over, you would just keep seeing that same value" I'm afraid that might be incorrect, or at least somewhat misleading. In a quantum system, if you repeatedly measure a register that's in superposition (re-initialized each time to the same state), you'll observe outcomes according to the probability distribution defined by the amplitudes — not always the same value. Perhaps what you meant is: if the system has already been measured and thus collapsed into a definite state, then repeated readings would indeed return the same value — but that's a different scenario :)

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @Uluru1410 様 
00:09:45 - 00:36:54
“think of it as some super high dimensional space” yeah man i got what you are trying to say, continue - But what is quantum computing?  (Grover's Algorithm)

“think of it as some super high dimensional space” yeah man i got what you are trying to say, continue

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @la0rh978 様 
00:10:15 - 00:36:54
^k notion of dimensions at ) if that's ever a future idea of a video (especially in ER = EPR for describing how the Einstein Rosen bridge gets "longer" as the entangled black holes evaporate). - But what is quantum computing?  (Grover's Algorithm)

^k notion of dimensions at ) if that's ever a future idea of a video (especially in ER = EPR for describing how the Einstein Rosen bridge gets "longer" as the entangled black holes evaporate).

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @arktic3140 様 
00:10:16 - 00:36:54
I love how you throw out in the vector demonstration around  “instead k^2 dimensions instead of 3 dimensions” yeah super easy to comprehend, thanks - But what is quantum computing?  (Grover's Algorithm)

I love how you throw out in the vector demonstration around “instead k^2 dimensions instead of 3 dimensions” yeah super easy to comprehend, thanks

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @3fingerheater 様 
00:10:30 - 00:36:54
if you square any real number (positive or negative) you'll always get a positive number - But what is quantum computing?  (Grover's Algorithm)

if you square any real number (positive or negative) you'll always get a positive number

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @7002NYWDE 様 
00:10:45 - 00:36:54
Take  ''Alot of people don't know what the state vector represents'' re why we square the magnitude of each component of the vector.- The sum of all possible state vectors equals zero, and a plot of this results in a unit n-sphere. The sum of square equals the square of the radius of the sphere (in this case 1²=1). But how do I know it's a unit nsphere? Cause the state vector consists of probability components. And the cumulative probability of any Universal set must equal 1. - But what is quantum computing?  (Grover's Algorithm)

Take ''Alot of people don't know what the state vector represents'' re why we square the magnitude of each component of the vector.- The sum of all possible state vectors equals zero, and a plot of this results in a unit n-sphere. The sum of square equals the square of the radius of the sphere (in this case 1²=1). But how do I know it's a unit nsphere? Cause the state vector consists of probability components. And the cumulative probability of any Universal set must equal 1.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @thespacedingoking 様 
00:11:00 - 00:32:20
just guessing but is state vector, wave function, because we square that to get the probability, right? - But what is quantum computing?  (Grover's Algorithm)

just guessing but is state vector, wave function, because we square that to get the probability, right?

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @_BlackSpectrum 様 
00:11:12 - 00:36:54
- Qubits - But what is quantum computing?  (Grover's Algorithm)

- Qubits

But what is quantum computing? (Grover's Algorithm)
2025年04月30日 
00:12:00 - 00:15:52
- "After all, something is going to happen" - But what is quantum computing?  (Grover's Algorithm)

- "After all, something is going to happen"

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @allmhuran 様 
00:12:56 - 00:36:54
Instead, we need to do the full M steps of Grover's algorithm to slowly increase the likelihood of reading outcome |k> when we take a measurement of the latest vector output by the "circuit" after each of the M steps (the vector shown as "wires" between boxes at  in the first quantum video, let's call those M vectors the "result" vectors, since the video doesn't give them a name).  We keep doing more and more steps until we maximize the probability of measuring a "result" vector as outcome |k> (and M steps is the right number of steps for this).  The fact that we have to do this M times is why it's not an O(1) algorithm.  The fact that we have to do this M times is why it's partially misleading to say we're "testing all the outcomes in parallel" (since WE can't just connect a multitester lead to check the probability of an individual outcome of any given "result" vector) though I still think it's CRITICAL FOR TEACHING to say that the quantum computer is trying all the outcomes "in parallel" so people can have a sense of what's going on and why there would ever be any speedup. - But what is quantum computing?  (Grover's Algorithm)

Instead, we need to do the full M steps of Grover's algorithm to slowly increase the likelihood of reading outcome |k> when we take a measurement of the latest vector output by the "circuit" after each of the M steps (the vector shown as "wires" between boxes at in the first quantum video, let's call those M vectors the "result" vectors, since the video doesn't give them a name). We keep doing more and more steps until we maximize the probability of measuring a "result" vector as outcome |k> (and M steps is the right number of steps for this). The fact that we have to do this M times is why it's not an O(1) algorithm. The fact that we have to do this M times is why it's partially misleading to say we're "testing all the outcomes in parallel" (since WE can't just connect a multitester lead to check the probability of an individual outcome of any given "result" vector) though I still think it's CRITICAL FOR TEACHING to say that the quantum computer is trying all the outcomes "in parallel" so people can have a sense of what's going on and why there would ever be any speedup.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @lurkertech 様 
00:13:06 - 00:36:54
, it would have been extremely helpful for my quantum computing course. Howeevr, I need to correct you in . It's not just a unit circle, its something called a Bloch Sphere, which in itself is what we call a CP^1 or a complex projective space of dimension 1. Its because of this that we take |x|^2 instead of simply x^2, and that's because the coefficient of |0> and |1> can also be complex, with the restriction that |x|^2+|y|^2=1 - But what is quantum computing?  (Grover's Algorithm)

, it would have been extremely helpful for my quantum computing course. Howeevr, I need to correct you in . It's not just a unit circle, its something called a Bloch Sphere, which in itself is what we call a CP^1 or a complex projective space of dimension 1. Its because of this that we take |x|^2 instead of simply x^2, and that's because the coefficient of |0> and |1> can also be complex, with the restriction that |x|^2+|y|^2=1

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @thegrimreaps6964 様 
00:13:38 - 00:36:54
“Added *bit* of *complex*ity” 😂 - But what is quantum computing?  (Grover's Algorithm)

“Added *bit* of *complex*ity” 😂

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @ariehzimmerman1766 様 
00:13:45 - 00:36:54
As someone who took introductory quantum mechanics course the first aha moment is at  showing what a qubit REALLY is - But what is quantum computing?  (Grover's Algorithm)

As someone who took introductory quantum mechanics course the first aha moment is at showing what a qubit REALLY is

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @mostinho7 様 
00:14:38 - 00:15:00
TODO continue from - But what is quantum computing?  (Grover's Algorithm)

TODO continue from

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @mostinho7 様 
00:15:00 - 00:36:54
Nice Schrödinger's Cat reference at - But what is quantum computing?  (Grover's Algorithm)

Nice Schrödinger's Cat reference at

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @localslenderman3264 様 
00:15:14 - 00:36:54
- The vibe of quantum algorithms - But what is quantum computing?  (Grover's Algorithm)

- The vibe of quantum algorithms

But what is quantum computing? (Grover's Algorithm)
2025年04月30日 
00:15:52 - 00:18:38
I found this bit where the circuit is drawn just gorgeous - But what is quantum computing?  (Grover's Algorithm)

I found this bit where the circuit is drawn just gorgeous

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @quintencabo 様 
00:16:01 - 00:36:54
-bit CLA, seeing one pop up at  gave me a sensible chuckle - But what is quantum computing?  (Grover's Algorithm)

-bit CLA, seeing one pop up at gave me a sensible chuckle

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @rocketlanterns 様 
00:16:05 - 00:36:54
I bet that circuit does something interesting. Waiting to hear from people that know. - But what is quantum computing?  (Grover's Algorithm)

I bet that circuit does something interesting. Waiting to hear from people that know.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @prof.tahseen6104 様 
00:16:08 - 00:36:54
Example: a coin (deterministic) + Quantum vector = would be to have a 50/50 probability it would land either "heads" or "tails?" - But what is quantum computing?  (Grover's Algorithm)

Example: a coin (deterministic) + Quantum vector = would be to have a 50/50 probability it would land either "heads" or "tails?"

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @TheSpiritualCollective444 様 
00:16:49 - 00:36:54
@ Minor pedagogical point - applying a Hadamard gate twice would actually take a |0> state to a (negative) |1> and not back to |0>. I find it useful to think of the Hadamard transformation as half of a bit flip. Leading directly to the intuition that two Hadamards simply flips the bit. - But what is quantum computing?  (Grover's Algorithm)

@ Minor pedagogical point - applying a Hadamard gate twice would actually take a |0> state to a (negative) |1> and not back to |0>. I find it useful to think of the Hadamard transformation as half of a bit flip. Leading directly to the intuition that two Hadamards simply flips the bit.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @dlilliehook 様 
00:16:50 - 00:36:54
I have a suggestion for ur visuals as ur visuals are the best of the best but to touch the elite line u can put the anime style in this, particularly on - But what is quantum computing?  (Grover's Algorithm)

I have a suggestion for ur visuals as ur visuals are the best of the best but to touch the elite line u can put the anime style in this, particularly on

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @puneetpoddar2432 様 
00:17:08 - 00:17:08
in this - But what is quantum computing?  (Grover's Algorithm)

in this

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @puneetpoddar2432 様 
00:17:08 - 00:36:54
- Grover’s Algorithm - But what is quantum computing?  (Grover's Algorithm)

- Grover’s Algorithm

But what is quantum computing? (Grover's Algorithm)
2025年04月30日 
00:18:38 - 00:29:30
Question here: At , why do you flip the sign of only the secret key? if it is supposed to be unknown??? - But what is quantum computing?  (Grover's Algorithm)

Question here: At , why do you flip the sign of only the secret key? if it is supposed to be unknown???

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @DeusExMachina-h6l 様 
00:19:00 - 00:36:54
but how do i know beforehand what is the secret key value im looking for? How would this work in practice if say i try to force a password? - But what is quantum computing?  (Grover's Algorithm)

but how do i know beforehand what is the secret key value im looking for? How would this work in practice if say i try to force a password?

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @nonbreapelido3549 様 
00:19:30 - 00:36:54
perhaps it’s on my brain a whole lot lately, but every time you talk about using this algorithm as a search, my brain adds to the list of applications “finding the most probable next word in a sequence of words” - But what is quantum computing?  (Grover's Algorithm)

perhaps it’s on my brain a whole lot lately, but every time you talk about using this algorithm as a search, my brain adds to the list of applications “finding the most probable next word in a sequence of words”

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @five-toedslothbear4051 様 
00:20:09 - 00:36:54
Nice video as always, but the logic gates circuit for the function at  is just bad. You only need 3 2-input and gates & 2 not gates to verify a 0101 (5). Boolean algebra. - But what is quantum computing?  (Grover's Algorithm)

Nice video as always, but the logic gates circuit for the function at is just bad. You only need 3 2-input and gates & 2 not gates to verify a 0101 (5). Boolean algebra.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @filipion1227 様 
00:20:24 - 00:36:54
-  Why is that: "Grover knew that given any ensemble of logic gates like this, you can translate it into a system of quantum gates, so that if in the classical case the function takes in some binary input and returns a one, for true, then in the quantum case, the effect of all of these gates is to flip the sign of that state; the state associated with the same bitstring." - But what is quantum computing?  (Grover's Algorithm)

- Why is that: "Grover knew that given any ensemble of logic gates like this, you can translate it into a system of quantum gates, so that if in the classical case the function takes in some binary input and returns a one, for true, then in the quantum case, the effect of all of these gates is to flip the sign of that state; the state associated with the same bitstring."

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @splience 様 
00:20:30 - 00:25:52
But at , we have to translate the function to a quantum equivalent, that instead of verifying if the answer is correct, flips the sign of the correct coordinate. The "you can translate it" is not about a theoretical possibility here, you really have to (very carefully) translate the classical verification algorithm into the quantum "secret axis flipping" algorithm. - But what is quantum computing?  (Grover's Algorithm)

But at , we have to translate the function to a quantum equivalent, that instead of verifying if the answer is correct, flips the sign of the correct coordinate. The "you can translate it" is not about a theoretical possibility here, you really have to (very carefully) translate the classical verification algorithm into the quantum "secret axis flipping" algorithm.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @VincentAubry-hr1ez 様 
00:20:30 - 00:36:54
Great video as always! The only part that’s still unclear to me is how the system of quantum gates at  is able to invert the amplitude of the key item. More specifically, how is it possible for this to happen in so few steps that the overall complexity remains proportional to √N? This is something many textbook explanations don’t really clarify, and I was really hoping for a more precise understanding of this part of Grover’s Algorithm from the video. - But what is quantum computing?  (Grover's Algorithm)

Great video as always! The only part that’s still unclear to me is how the system of quantum gates at is able to invert the amplitude of the key item. More specifically, how is it possible for this to happen in so few steps that the overall complexity remains proportional to √N? This is something many textbook explanations don’t really clarify, and I was really hoping for a more precise understanding of this part of Grover’s Algorithm from the video.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @ReyJoPlay 様 
00:20:36 - 00:36:54
it reminds me of Cook-Levin theorem - But what is quantum computing?  (Grover's Algorithm)

it reminds me of Cook-Levin theorem

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @marpin6162 様 
00:20:44 - 00:36:54
I feel like the real magic is happening with the quantum gates (), and I really don't understand it. So to take all the input values then run them through the quantum gate, with the goal of reversing the logical value of the key, would take N time, right? And why couldn't the process just end once a value has been flipped? Everything else just seems like a cool algorithm to find a needle in a haystack, but what I want to know is how they take a haystack and turn the key straw into a needle in seemingly constant time. - But what is quantum computing?  (Grover's Algorithm)

I feel like the real magic is happening with the quantum gates (), and I really don't understand it. So to take all the input values then run them through the quantum gate, with the goal of reversing the logical value of the key, would take N time, right? And why couldn't the process just end once a value has been flipped? Everything else just seems like a cool algorithm to find a needle in a haystack, but what I want to know is how they take a haystack and turn the key straw into a needle in seemingly constant time.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @Johndoe-on9ye 様 
00:20:59 - 00:36:54
I think  tries to answer my question, but the operation does not feel "useless" it feels like: if we can flip the sign of the key component, then we are already done because we already know the key direction. - But what is quantum computing?  (Grover's Algorithm)

I think tries to answer my question, but the operation does not feel "useless" it feels like: if we can flip the sign of the key component, then we are already done because we already know the key direction.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @IAmMaxwellHearMeRoar 様 
00:21:00 - 00:36:54
mentions that the quantum gate "simply" flips the key value. Wouldn't it have to process a N dimensional vector every time ? Isn't the difference between the quantum gates doing something very different here(parallelism?) that enables much of the speed gain? - But what is quantum computing?  (Grover's Algorithm)

mentions that the quantum gate "simply" flips the key value. Wouldn't it have to process a N dimensional vector every time ? Isn't the difference between the quantum gates doing something very different here(parallelism?) that enables much of the speed gain?

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @makenewmistake 様 
00:21:12 - 00:36:54
I think you may misunderstand me (or I'm just not understanding). We only know the key direction because a value was flipped (turned negative). In order for the state vector to be originally flipped, the value corresponding to the solution for the given problem, the states needed to be passed through the quantum gate (). Once the specified state vector was given a negative value, then the probability shifting occurs. I don't understand how first process occurs, in what seems to be constant time. - But what is quantum computing?  (Grover's Algorithm)

I think you may misunderstand me (or I'm just not understanding). We only know the key direction because a value was flipped (turned negative). In order for the state vector to be originally flipped, the value corresponding to the solution for the given problem, the states needed to be passed through the quantum gate (). Once the specified state vector was given a negative value, then the probability shifting occurs. I don't understand how first process occurs, in what seems to be constant time.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @Johndoe-on9ye 様 
00:21:25 - 00:36:54
why does he use the term "state vector" at  then? Does me mean to say that a specific component of that state vector is flipped? - But what is quantum computing?  (Grover's Algorithm)

why does he use the term "state vector" at then? Does me mean to say that a specific component of that state vector is flipped?

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @Johndoe-on9ye 様 
00:21:27 - 00:36:54
Something I don't really understand, if you need flipping the sign of the value at the position corresponding to the solution of the problem, then shouldn't that require that you know the solution already? I've probably missed something that tells about that, but just quickly asking it here. - But what is quantum computing?  (Grover's Algorithm)

Something I don't really understand, if you need flipping the sign of the value at the position corresponding to the solution of the problem, then shouldn't that require that you know the solution already? I've probably missed something that tells about that, but just quickly asking it here.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @-WarMapping- 様 
00:21:34 - 00:36:54
Always love your videos. One thing a layperson like me might hold onto is, how does the Algorithm "know" which one is the secret key? And therefore even start to run that process show in - But what is quantum computing?  (Grover's Algorithm)

Always love your videos. One thing a layperson like me might hold onto is, how does the Algorithm "know" which one is the secret key? And therefore even start to run that process show in

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @jaymayhoi 様 
00:22:31 - 00:36:54
Another great video, I just didn't get one thing -  you say quantum computer can put the key value on one axis and "average" all the other values into the other axis - but isn't the whole thing about not knowing what is the key value in the first place? If we don't know where to go, does it mean we just try every direction? And how do we know we went into the correct answer direction and not some random one? - But what is quantum computing?  (Grover's Algorithm)

Another great video, I just didn't get one thing - you say quantum computer can put the key value on one axis and "average" all the other values into the other axis - but isn't the whole thing about not knowing what is the key value in the first place? If we don't know where to go, does it mean we just try every direction? And how do we know we went into the correct answer direction and not some random one?

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @criper4830 様 
00:23:02 - 00:36:54
How do we find equibalance of the non-key states ? - But what is quantum computing?  (Grover's Algorithm)

How do we find equibalance of the non-key states ?

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @AtharvaPande-be6zw 様 
00:23:06 - 00:36:54
This reminded me of your lecture about AI embedding spaces, how with the growth of number of dimensions, you are guaranteed to find more and more perpendicular vectors. - But what is quantum computing?  (Grover's Algorithm)

This reminded me of your lecture about AI embedding spaces, how with the growth of number of dimensions, you are guaranteed to find more and more perpendicular vectors.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @CallOfCutie69 様 
00:23:40 - 00:36:54
Please explain this, i am ultra confused  -  : if we don't know key value how can we perform flipping it's sign or any other reflection operation regarding it's position. - But what is quantum computing?  (Grover's Algorithm)

Please explain this, i am ultra confused - : if we don't know key value how can we perform flipping it's sign or any other reflection operation regarding it's position.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @nikolozpapiashvili1241 様 
00:25:33 - 00:36:54
*focuses in learning - But what is quantum computing?  (Grover's Algorithm)

*focuses in learning

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @metaphysical-4296 様 
00:25:45 - 00:30:16
Great explanation! Admittedly, I’m still a bit confused by how you “flip about the x-axis” (or flip the sign of the key value) when the x-axis seems to be defined by “not the key.” It seems the key needs to be known to flip the sign associated with the key value (flip the sign for the component associated with the key value? - But what is quantum computing?  (Grover's Algorithm)

Great explanation! Admittedly, I’m still a bit confused by how you “flip about the x-axis” (or flip the sign of the key value) when the x-axis seems to be defined by “not the key.” It seems the key needs to be known to flip the sign associated with the key value (flip the sign for the component associated with the key value?

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @weschrist 様 
00:25:45 - 00:36:54
when flipping the state vector around the "equal balance direction", how do you avoid also transforming the key vector? - But what is quantum computing?  (Grover's Algorithm)

when flipping the state vector around the "equal balance direction", how do you avoid also transforming the key vector?

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @ohmygodstopitgoogle 様 
00:25:45 - 00:36:54
-  yes, indeed... "In general, if you can clearly describe and access one of these state vectors, it's also perfectly possible to reflect around it." - But what is quantum computing?  (Grover's Algorithm)

- yes, indeed... "In general, if you can clearly describe and access one of these state vectors, it's also perfectly possible to reflect around it."

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @splience 様 
00:25:52 - 00:36:54
b does seem to imply this at , but I'm not sure this is what he meant. - But what is quantum computing?  (Grover's Algorithm)

b does seem to imply this at , but I'm not sure this is what he meant.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @rikschaaf 様 
00:25:57 - 00:36:54
if we can access the vector then it's possible to reflect around it but how we have the access to vector aligning the x axis - But what is quantum computing?  (Grover's Algorithm)

if we can access the vector then it's possible to reflect around it but how we have the access to vector aligning the x axis

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @devot_e 様 
00:26:00 - 00:36:54
I doubt that's it, but just in case you're talking about applying a fast-exponentiation-like approach for the  part by rotating the vector by 2theta, 4theta, 8theta and so on and so forth (choosing a recently obtained vector as an axis instead of |b> each time). That approach doesn't work because you cannot duplicate quantum states (no cloning theorem). Basically, if you want to use a quantum state twice you have to build two copies from scratch and that defeats the point. - But what is quantum computing?  (Grover's Algorithm)

I doubt that's it, but just in case you're talking about applying a fast-exponentiation-like approach for the part by rotating the vector by 2theta, 4theta, 8theta and so on and so forth (choosing a recently obtained vector as an axis instead of |b> each time). That approach doesn't work because you cannot duplicate quantum states (no cloning theorem). Basically, if you want to use a quantum state twice you have to build two copies from scratch and that defeats the point.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @OlxinosEtenn 様 
00:26:15 - 00:36:54
This was extremely helpful to me, confirming the vague notion I had about what quantum computing is about while also providing intuition about what a quantum algorithm is.However, I am still confused at , where you "first flip around the x direction and then flip around this off-diagonal direction" these seem to be unlike each other. The x direction stands for the orthogonal to the (unique solution) y direction, so it is in fact the hyperplane of all directions that are not y. But the other direction is given by just your single initial-state vector. so flipping around it is not well defined, in any case not as a geometric reflection. So it looks like you are trying to compose a reflection with something that is not a reflection in order to obtain a rotation, and that does not seem to work (except in dimension 2). - But what is quantum computing?  (Grover's Algorithm)

This was extremely helpful to me, confirming the vague notion I had about what quantum computing is about while also providing intuition about what a quantum algorithm is.However, I am still confused at , where you "first flip around the x direction and then flip around this off-diagonal direction" these seem to be unlike each other. The x direction stands for the orthogonal to the (unique solution) y direction, so it is in fact the hyperplane of all directions that are not y. But the other direction is given by just your single initial-state vector. so flipping around it is not well defined, in any case not as a geometric reflection. So it looks like you are trying to compose a reflection with something that is not a reflection in order to obtain a rotation, and that does not seem to work (except in dimension 2).

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @marcvanleeuwen5986 様 
00:26:20 - 00:36:54
After the first reflections, why can’t you then reflect around the new higher vector you created, to get to the top faster? - But what is quantum computing?  (Grover's Algorithm)

After the first reflections, why can’t you then reflect around the new higher vector you created, to get to the top faster?

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @macrophageco 様 
00:26:50 - 00:36:54
so its just a computer - But what is quantum computing?  (Grover's Algorithm)

so its just a computer

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @loliamtheone5643 様 
00:27:42 - 00:36:54
This video is great.  you could use classical computers to calculate the root of N but it is a bit expensive. - But what is quantum computing?  (Grover's Algorithm)

This video is great. you could use classical computers to calculate the root of N but it is a bit expensive.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @gadzbi123 様 
00:28:13 - 00:36:54
I started to understand at around - But what is quantum computing?  (Grover's Algorithm)

I started to understand at around

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @РуменИвановАндреев 様 
00:28:50 - 00:36:54
Until you finally mentioned at  ish that... you can just check it, since the premise was that the answer is quickly verifiable. - But what is quantum computing?  (Grover's Algorithm)

Until you finally mentioned at ish that... you can just check it, since the premise was that the answer is quickly verifiable.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @newsoupvialt 様 
00:29:05 - 00:36:54
- Support pitch - But what is quantum computing?  (Grover's Algorithm)

- Support pitch

But what is quantum computing? (Grover's Algorithm)
2025年04月30日 
00:29:30 - 00:30:11
- Complex values - But what is quantum computing?  (Grover's Algorithm)

- Complex values

But what is quantum computing? (Grover's Algorithm)
2025年04月30日 
00:30:11 - 00:31:27
complex numbers elegant application - But what is quantum computing?  (Grover's Algorithm)

complex numbers elegant application

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @metaphysical-4296 様 
00:30:16 - 00:36:54
- Why square root? - But what is quantum computing?  (Grover's Algorithm)

- Why square root?

But what is quantum computing? (Grover's Algorithm)
2025年04月30日 
00:31:27 - 00:34:01
The fascinating thing about the  section is that I took the square visualisation of the beginning and basically immediately understood why it is squared thanks to Pythagoras. Because even if we consider parallelism, picturing it with a square or cube or whatever, leads us to consider "going along" all the edges at the same time. Which, in the simplest case of the square, means that we, well, have to put all of the possible outcomes into a square. Which we, of course, can't do without taking the square root. - But what is quantum computing?  (Grover's Algorithm)

The fascinating thing about the section is that I took the square visualisation of the beginning and basically immediately understood why it is squared thanks to Pythagoras. Because even if we consider parallelism, picturing it with a square or cube or whatever, leads us to consider "going along" all the edges at the same time. Which, in the simplest case of the square, means that we, well, have to put all of the possible outcomes into a square. Which we, of course, can't do without taking the square root.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @nestrior7733 様 
00:31:27 - 00:36:54
ofc its pythagoras its always pythagoras - But what is quantum computing?  (Grover's Algorithm)

ofc its pythagoras its always pythagoras

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @thespacedingoking 様 
00:32:20 - 00:36:54
Hey I recognize this!!That's the Cover Art for Richard Hamming's The Art of doing Science and Engineering! - But what is quantum computing?  (Grover's Algorithm)

Hey I recognize this!!That's the Cover Art for Richard Hamming's The Art of doing Science and Engineering!

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @botteo9257 様 
00:33:10 - 00:36:54
Wow, that created an optical illusion that glitched my mind HARD - But what is quantum computing?  (Grover's Algorithm)

Wow, that created an optical illusion that glitched my mind HARD

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @emberthecatgirl8796 様 
00:33:19 - 00:36:54
"Panoply of additional directions" Beautifully put - But what is quantum computing?  (Grover's Algorithm)

"Panoply of additional directions" Beautifully put

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @duytdl 様 
00:33:27 - 00:36:54
why is the shortcut squareroot sized when the vector doesnt move the whole way (just an approximation of pi over 4)? Wouldnt that mean that the shortcut the vector takes is ALMOST squareroot sized? (Kinda like the almost pi endzone in your last video) - But what is quantum computing?  (Grover's Algorithm)

why is the shortcut squareroot sized when the vector doesnt move the whole way (just an approximation of pi over 4)? Wouldnt that mean that the shortcut the vector takes is ALMOST squareroot sized? (Kinda like the almost pi endzone in your last video)

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @minamironov7133 様 
00:34:00 - 00:36:54
- Connection to block collisions - But what is quantum computing?  (Grover's Algorithm)

- Connection to block collisions

But what is quantum computing? (Grover's Algorithm)
2025年04月30日 
00:34:01 - 00:35:08
finally, *the* one Brown - But what is quantum computing?  (Grover's Algorithm)

finally, *the* one Brown

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @dj-maxus 様 
00:34:26 - 00:36:54
- Additional resources - But what is quantum computing?  (Grover's Algorithm)

- Additional resources

But what is quantum computing? (Grover's Algorithm)
2025年04月30日 
00:35:08 - 00:36:54
flashbang alert - But what is quantum computing?  (Grover's Algorithm)

flashbang alert

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @glebbash 様 
00:35:08 - 00:36:54
Q 1 – Early stop at sixty degrees•	Chance of measuring the correct item: 75%.•	Grover iterations used: roughly 0.52 times the square root of the database size N, which is about 2/3 of the work in Grover's original algorithm.•	Why: each Grover step rotates the state by a tiny fixed angle; stopping when the total turn reaches 60 degrees means you have not yet maximised the success amplitude, but you have saved time. - But what is quantum computing?  (Grover's Algorithm)

Q 1 – Early stop at sixty degrees• Chance of measuring the correct item: 75%.• Grover iterations used: roughly 0.52 times the square root of the database size N, which is about 2/3 of the work in Grover's original algorithm.• Why: each Grover step rotates the state by a tiny fixed angle; stopping when the total turn reaches 60 degrees means you have not yet maximised the success amplitude, but you have saved time.

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @data1217 様 
00:36:42 - 00:36:54
interesting so the function we're optimizing here is essentially - But what is quantum computing?  (Grover's Algorithm)

interesting so the function we're optimizing here is essentially

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @ckq 様 
00:36:43 - 00:36:54
"More fun homework": When the state vector rotates to a 60 degree angle, the probability amplitude for the secret key vector is root 3 over 2; the probability that we will get the right answer on the first try is 3/4, or 75%. The probability that we will get the wrong answer on the first try is 25%, or 0.25 - But what is quantum computing?  (Grover's Algorithm)

"More fun homework": When the state vector rotates to a 60 degree angle, the probability amplitude for the secret key vector is root 3 over 2; the probability that we will get the right answer on the first try is 3/4, or 75%. The probability that we will get the wrong answer on the first try is 25%, or 0.25

But what is quantum computing? (Grover's Algorithm)
2025年04月30日  @david21686 様 
00:36:45 - 00:36:54

3Blue1Brown

※本サイトに掲載されているチャンネル情報や動画情報はYouTube公式のAPIを使って取得・表示しています。動画はYouTube公式の動画プレイヤーで再生されるため、再生数・収益などはすべて元動画に還元されます。

Timetable

動画タイムテーブル

タイムテーブルが見つかりませんでした。