Latest / CyberSecurity Summary / Learn Quantum Computing with Python and IBM Quantum: Write your own practical quantum programs with Python
Transcript
- 0:00Speaker 1: You know that feeling right when you need to get
- 0:02Speaker 1: up to speed on something really complex fast, but you're
- 0:04Speaker 1: just drowning in articles and papers.
- 0:06Speaker 2: Yeah, totally information overload exactly.
- 0:09Speaker 1: So we're here to give you that shortcut, that deep
- 0:12Speaker 1: dive to get you properly informed. Today we're jumping into
- 0:16Speaker 1: a field that's honestly reshaping how we even think about computation.
- 0:19Speaker 2: It really is. We're talking quantum computing, and our mission
- 0:22Speaker 2: today is to untack the core ideas, look at the
- 0:27Speaker 2: tools making it accessible, which is amazing, and even touch
- 0:30Speaker 2: on some algorithms that sound like science.
- 0:32Speaker 1: Fiction, they really do. Our main guide here is the
- 0:35Speaker 1: second edition of Learn Quantum Computing with Python and IBM
- 0:39Speaker 1: Quantum by Robert Laredo. He's an IBM Mastered inventor, a
- 0:43Speaker 1: quantum ambassador, just brilliant and.
- 0:46Speaker 2: A great guy too. Donated his previous books royalties to
- 0:48Speaker 2: Doctors Without Borders. We're also pulling in insights from reviewers
- 0:52Speaker 2: like Haci Norlen, Mikhail Grossey, Sean Wagner, all deep in
- 0:56Speaker 2: the IBM Quantum and caskit world.
- 0:58Speaker 1: So whether you're prepping for that big meeting or just
- 1:01Speaker 1: trying to figure out what all the buzz is about.
- 1:03Speaker 1: Or maybe you're just super curious, which you should be. Huh. Yeah,
- 1:07Speaker 1: this deep dive should give you those aha moments. We're
- 1:10Speaker 1: aiming to show how these really abstract ideas are becoming concrete.
- 1:15Speaker 2: Tools, right without making your head explode hopefully.
- 1:19Speaker 1: Okay, so let's start at the beginning. Quantum mechanics sounds intimidating,
- 1:22Speaker 1: but it's the bedrock of all this. We're talking about
- 1:25Speaker 1: the rules governing the universe at the tiniest scales, the
- 1:28Speaker 1: sub atomic level.
- 1:29Speaker 2: Yeah, the foundations laid by you know, the giants Schrodinger, Plank, Heisenberg,
- 1:34Speaker 2: Drach Einstein. Their work described a world that's just fundamentally
- 1:38Speaker 2: weird compared to our everyday experience, and that weirdness is key, right,
- 1:42Speaker 2: Like the double slit experiment exactly, that's a classic. You
- 1:45Speaker 2: fire single particles like photons at two slits, you'd expect
- 1:49Speaker 2: two lines on the screen behind it, right, Yeah, it
- 1:51Speaker 2: makes sense, but you don't get that. You get an
- 1:53Speaker 2: interference pattern like waves canceling out and adding up. It
- 1:56Speaker 2: shows particles behaving like waves. This wave part duality. It's
- 2:01Speaker 2: not just a cool fact, it's something Quantum computers actively use.
- 2:05Speaker 1: So we all get classical bits on off zero one
- 2:09Speaker 1: transistors doing their thing. But the quantum version, the quibit. Yeah,
- 2:14Speaker 1: that's the heart of it. What makes it so different.
- 2:16Speaker 2: Well, the huge difference is superposition Equibit isn't just zero
- 2:20Speaker 2: or one. It can be zero, it can be one,
- 2:22Speaker 2: or it can be a combination of both at the
- 2:25Speaker 2: exact same.
- 2:26Speaker 1: Time, both like simultaneously.
- 2:28Speaker 2: Kind of think of it less like a hidden state
- 2:30Speaker 2: like a spinning coin before it lands, and more like, well,
- 2:33Speaker 2: the quantum state itself is a blend of possibilities until
- 2:36Speaker 2: you measure it. Measuring forces it to choose zero or one.
- 2:40Speaker 1: You mentioned a spinning coin, but you said it's not
- 2:42Speaker 1: like that. Yeah, that the quantum outcome is truly random.
- 2:47Speaker 1: That sounds profound. Are we saying there's no hidden instruction
- 2:50Speaker 1: determining the outcome?
- 2:51Speaker 2: That's exactly what standard quantum mechanics says. Yeah, it's fundamentally probabilistic,
- 2:55Speaker 2: not just we don't know enough, but actually random. And
- 2:57Speaker 2: that's a massive conceptual leap. It means quantum computers work
- 3:01Speaker 2: with probabilities directly.
- 3:03Speaker 1: Wow, Okay, that changes things.
- 3:05Speaker 2: It does, and that leads to the second key, difference entanglement.
- 3:09Speaker 2: This is the one Einstein called famously spooky action at
- 3:12Speaker 2: a distance.
- 3:13Speaker 1: Spooky action. I love that phrase. What does it actually
- 3:16Speaker 1: mean for quibits?
- 3:17Speaker 2: It means you can link two or more quibits together
- 3:20Speaker 2: in a special way, so intimately linked that measuring the
- 3:23Speaker 2: state of one quibbit instantly tells you the state of
- 3:26Speaker 2: the other, no matter how far apart they are, instantly
- 3:28Speaker 2: across any distance, instantly. If you have two entangled quibits
- 3:32Speaker 2: and measure one is zero, you know the other is zero.
- 3:35Speaker 2: If one's one, the other's one, always correlate. It's like
- 3:38Speaker 2: they're still connected, sharing the same fate. It's a crucial resource.
- 3:41Speaker 1: Okay, superposition entanglement. Yeah, and you mentioned interference. Going back
- 3:47Speaker 1: to the double slit thing. How does that play into algorithms?
- 3:50Speaker 2: Right? Interference Quantum algorithms are designed to leverage this. Think
- 3:53Speaker 2: of it like paths leading to the wrong answer interfere
- 3:56Speaker 2: destructively and cancel each other out.
- 3:59Speaker 1: Ah, so they just disappear effectively.
- 4:01Speaker 2: Yeah, while the paths leading to the right answer interfere constructively,
- 4:05Speaker 2: reinforcing each other. So the probability of measuring the correct
- 4:08Speaker 2: answer gets amplified. It's a way to sift through possibilities incredibly.
- 4:12Speaker 1: Efficiently and visualizing this yeah, it's hard to picture. Are
- 4:17Speaker 1: there tools for that?
- 4:18Speaker 2: There are. For a single quibut, we often use the
- 4:21Speaker 2: block sphere. It helps visualize its state, including its amplitude
- 4:25Speaker 2: and phase, like a point on a globe. But for
- 4:28Speaker 2: multiple entangled quibits that gets complicated. So there's a more
- 4:32Speaker 2: powerful tool called the q sphere, which can show the
- 4:35Speaker 2: combined state of many quibits, including those crucial phase relationships
- 4:40Speaker 2: between them.
- 4:40Speaker 1: This is fascinating, but maybe a bit abstract. How do
- 4:44Speaker 1: people actually use this stuff? Where do you start?
- 4:46Speaker 2: Great question? For many. The entry point is the IBM
- 4:50Speaker 2: Quantum Platform or IQP, and it's got a cool history.
- 4:54Speaker 2: IBM actually put the first quantum computer on the cloud
- 4:58Speaker 2: free for anyone to use, back in May twenty sixteen.
- 5:01Speaker 1: Wow, twenty sixteen. That feels like ages ago in this field, right.
- 5:04Speaker 2: It was called the IBM Quantum Experience.
- 5:06Speaker 1: Then.
- 5:07Speaker 2: Now it's this much more developed platform, the ITP.
- 5:09Speaker 1: What's actually on the platform.
- 5:11Speaker 2: It's got a few key parts. The main platform view
- 5:13Speaker 2: is your dashboard. You can see which quantum computers are online,
- 5:16Speaker 2: how busy they are, check on your jobs, see how
- 5:19Speaker 2: much computing time you've.
- 5:20Speaker 1: Used, like a mission control kind of. Yeah.
- 5:22Speaker 2: Then there's the documentation which is huge. Everything you need
- 5:25Speaker 2: to set up your coding environment, understand Kuskit, which we'll
- 5:29Speaker 2: get to its APIs. It's all there.
- 5:31Speaker 1: And you mentioned learning resources.
- 5:33Speaker 2: Oh yeah, the learning section is fantastic courses, tutorials from
- 5:37Speaker 2: beginner stuff right up to advanced topics, even quantum safe cryptography.
- 5:42Speaker 2: It really lowers the barrier to entry inside the platform.
- 5:45Speaker 1: I heard there's something called the composer, like a drag
- 5:48Speaker 1: and drop interface.
- 5:49Speaker 2: That's right. The composer is brilliant for visual learners or
- 5:52Speaker 2: just starting out. It's a graphical interface where you literally
- 5:56Speaker 2: drag quantum gates onto quibit lines to build a circuit.
- 6:00Speaker 1: Oh cool.
- 6:00Speaker 2: And the best part is the real time feedback. As
- 6:02Speaker 2: you build, you see visualizations update instantly, the state vector
- 6:06Speaker 2: view showing amplitudes, the probabilities view predicting outcomes. Even that
- 6:10Speaker 2: q sphere we talked about, you can pop a not
- 6:13Speaker 2: t git on there and see the probability flip from
- 6:15Speaker 2: one hundred percent zero to one hundred percent one right away.
- 6:19Speaker 1: So you can really see cause and effects.
- 6:20Speaker 2: Exactly. It makes it much more intuitive.
- 6:22Speaker 1: Okay, but what if you want to go beyond dragging
- 6:24Speaker 1: and dropping. You mentioned quiske It.
- 6:26Speaker 2: Yes, kiss git. That's IBM's open source software development kit
- 6:30Speaker 2: for quantum computing. It's built on Python, which makes it
- 6:34Speaker 2: accessible to a huge community of developers. It's really the
- 6:38Speaker 2: standard for working with IBM's quantum systems programmatically.
- 6:42Speaker 1: Is it just one monolithic.
- 6:43Speaker 2: Thing or no, It's cleverly layered. They think about different
- 6:47Speaker 2: developer roles. At the lowest level. You have kernel developers.
- 6:50Speaker 2: They're working right down near the hardware, figuring out the
- 6:53Speaker 2: precise microwave pulses needed to manipulate the quibbits.
- 6:57Speaker 1: Really deep stuff, okay, Hardware whisperers, ah yeah.
- 7:00Speaker 2: Then you have algorithm developers. They're using quiskit to design
- 7:03Speaker 2: the quantum circuits themselves. The algorithms. A big focus for
- 7:07Speaker 2: them is minimizing the impact of noise, making things run
- 7:10Speaker 2: better on today's imperfect hardware.
- 7:12Speaker 1: Right noise. We'll definitely need to talk more about that
- 7:15Speaker 1: and the third layer model developers.
- 7:17Speaker 2: These are folks who might be say chemists or financial analysts.
- 7:22Speaker 2: They want to use a quantum algorithm as part of
- 7:24Speaker 2: a larger workflow. They use quisk it to integrate quantum
- 7:29Speaker 2: computation into their existing applications, focusing on getting data in
- 7:32Speaker 2: and results out, often without needing to know every single
- 7:36Speaker 2: gate detail.
- 7:37Speaker 1: That makes a lot of sense. Can you run quiske
- 7:39Speaker 1: it on your own machine?
- 7:40Speaker 2: You can. You set it up locally, usually with Anaconda
- 7:43Speaker 2: for Python and Jupiter notebooks. It's great for simulating circuits,
- 7:46Speaker 2: but crucially you need your IBM Quantum API token to
- 7:50Speaker 2: actually send jobs to the real quantum computers in the cloud.
- 7:54Speaker 1: Gotcha, And if you get stuck.
- 7:55Speaker 2: There is a huge, very active community the quiskeuters on Slack.
- 7:58Speaker 2: It's amazing. You can ask questions, get help, see what
- 8:01Speaker 2: others are working on, connect with researchers. It's a really
- 8:04Speaker 2: supportive environment.
- 8:05Speaker 1: That's great to know. So we have quippits, we have
- 8:08Speaker 1: platforms like IBM Quantum and tools like quisket. Now, how
- 8:11Speaker 1: do we actually control the quibbuts? You mentioned gates in
- 8:14Speaker 1: the composer.
- 8:15Speaker 2: Right, Quantum logic gates. They are the fundamental operations you
- 8:18Speaker 2: perform on quibbots. But unlike classical gates, which just flip
- 8:22Speaker 2: bits based on simple rules, quantum gates are well, they're different.
- 8:26Speaker 2: They perform unitary transformations.
- 8:28Speaker 1: Unitary transformations sounds fancy. What does that mean? Practically?
- 8:34Speaker 2: It essentially means there are rotations in the Quibbets abstract
- 8:37Speaker 2: mathematical space. Think of the block sphere. A gate rotates
- 8:41Speaker 2: the Quibbitts state vector to a different point on that sphere.
- 8:44Speaker 2: And crucially, these transformations preserve the vector's length, which relates
- 8:49Speaker 2: to probability.
- 8:50Speaker 1: Okay, rotations, and you mentioned they're.
- 8:52Speaker 2: Reversible, almost all of them. Yes, reversibility is a key property.
- 8:56Speaker 2: If you apply a gate, you can almost always apply
- 8:59Speaker 2: another related gate its complex conjugator inverse to get back
- 9:02Speaker 2: exactly where you started. A HaTamar gate, for instance, applied twice,
- 9:06Speaker 2: brings you back to the initial state, unlike some classical
- 9:09Speaker 2: gates exactly think of a classical A and D gate.
- 9:12Speaker 2: If the output is zero, you don't know if the
- 9:13Speaker 2: inputs were zero, zero, zero, one, or ten. Information is lost.
- 9:18Speaker 2: Quantum gates generally don't lose information like that.
- 9:21Speaker 1: Okay, So what are some of the essential gates the
- 9:24Speaker 1: building blocks.
- 9:25Speaker 2: Well, for single clivits, the HaTamar gate or H gate
- 9:29Speaker 2: is absolutely fundamental. It's the main way we create superposition.
- 9:33Speaker 2: It takes a definite zero A state or one eight
- 9:36Speaker 2: to state and puts it into an equal mix of both.
- 9:38Speaker 1: The superposition workhorse. Got it.
- 9:40Speaker 2: Then you have the polygates X, Y, and Z. These
- 9:43Speaker 2: are basic rotations by one hundred and eighty degrees around
- 9:46Speaker 2: the respective axes on the block sphere. The X gate
- 9:49Speaker 2: is the quantum equivalent of the classical not T gate.
- 9:52Speaker 2: It flips zero to one a's and vice versa.
- 9:54Speaker 1: Simple flips what else.
- 9:56Speaker 2: For more precise control, especially over the quibt phase, which
- 9:59Speaker 2: is cre interference, you have phase gates, the ES gate,
- 10:03Speaker 2: the T gate, and their inversus s dagger T tigger.
- 10:06Speaker 2: They rotate the state around the z axis by specific.
- 10:08Speaker 1: Amounts, fine tuning the phase exactly.
- 10:10Speaker 2: And then there's the universal U gate. It's the most
- 10:13Speaker 2: general single quibut gate. With just three angle parameters, it
- 10:16Speaker 2: can perform any possible rotation, any single quibbit operation you
- 10:20Speaker 2: can imagine.
- 10:21Speaker 1: Wow, Okay, so that covers single quibts. But the real
- 10:24Speaker 1: power comes from interactions, right.
- 10:26Speaker 2: Entanglement precisely, yeah, and that requires multiquibit gates. The absolute
- 10:31Speaker 2: cornerstone here is the controlled knot gate or.
- 10:34Speaker 1: Cnot controlled not. What does it do?
- 10:36Speaker 2: It acts on two quibbits, a control quibbit and a
- 10:39Speaker 2: target quibt. If the control clibit is in the zero state,
- 10:43Speaker 2: it does nothing to the target. But if the control
- 10:45Speaker 2: quibit is in the one A state, it applies an
- 10:48Speaker 2: X gate a not gate to the target quibt flipping it.
- 10:51Speaker 1: Ah. So one quibt state controls an operation on another.
- 10:54Speaker 2: Yes, and this is the primary way we create entanglement
- 10:57Speaker 2: between equipbitts. It's fundamental.
- 10:59Speaker 1: What are the multiquibit gates are important?
- 11:01Speaker 2: Well, there's the Tafoli gate or CCX. It's like a
- 11:04Speaker 2: cnot but with two control quibots. The target quibit only
- 11:08Speaker 2: flips if both control quibots are one.
- 11:10Speaker 1: A okay, double control.
- 11:12Speaker 2: It's significant because the Toafoli gate is actually a universal
- 11:15Speaker 2: classical gate. You can build any classical circuit using just
- 11:19Speaker 2: to fullness in quantum. It shows how complex operations are
- 11:22Speaker 2: built up, often requiring decomposition into many simpler gates like hadamards, cnots.
- 11:27Speaker 1: And T gates interesting any others.
- 11:30Speaker 2: The swapgate is sometimes useful. It just swaps the states
- 11:32Speaker 2: of two quibuts. Does exactly what it says on the tin.
- 11:35Speaker 1: Okay, So you said almost all gates are reversible. What's
- 11:39Speaker 1: the exception where does the information get lost?
- 11:41Speaker 2: The exception is measurement. When you measure a quiboit to
- 11:45Speaker 2: find out if it's a zero or a one, the
- 11:47Speaker 2: quantum state collapses. All that complex superposition information, the amplitudes,
- 11:52Speaker 2: the phase. It's gone. You just get a classical bit
- 11:55Speaker 2: zero or one based on the probabilities dictated by the
- 11:58Speaker 2: state before measurement. It's the one irreversible step that makes sense.
- 12:02Speaker 1: You have to look eventually, and looking.
- 12:04Speaker 2: Changes things exactly. And you know, a really beautiful simple
- 12:07Speaker 2: circuit that uses these basic gates is the one that
- 12:10Speaker 2: creates the Bell state.
- 12:11Speaker 1: Bell states.
- 12:11Speaker 2: They're the four fundamental states of maximum entanglement. For two quibits.
- 12:16Speaker 2: For example, the A plus A state is an equal
- 12:18Speaker 2: superposition of zero, zero and eleven air. Both quibits are
- 12:22Speaker 2: zero or both are one perfectly correlated.
- 12:24Speaker 1: And how do you make that.
- 12:25Speaker 2: It's surprisingly simple. You start with two quibits and the
- 12:28Speaker 2: zero zero state, apply a Hadamar gate to the first
- 12:31Speaker 2: quibut to put it in superposition. Then apply a Cnot
- 12:34Speaker 2: gate with the first quibut as control and the second
- 12:36Speaker 2: is target boom bell state maximally entangled.
- 12:39Speaker 1: Wow, just two gates for that spooky action.
- 12:42Speaker 2: Yep, it's foundational for so many quantum algorithms and protocols.
- 12:47Speaker 1: Okay, so we've got the theory, the gates, the tools.
- 12:51Speaker 1: But running this on actual hardware, I imagine it's not
- 12:54Speaker 1: quite as clean as the simulations. You mentioned Noise earlier.
- 12:57Speaker 2: Oh yeah, noise is the big, big, big challenge in
- 13:00Speaker 2: the current era of quantum computing. These quantum states are
- 13:04Speaker 2: incredibly fragile. But first, let's talk about how you run
- 13:08Speaker 2: things efficiently on real hardware. That's where quisket run time
- 13:11Speaker 2: comes in.
- 13:12Speaker 1: Run time, what's that about.
- 13:13Speaker 2: It's IBM service designed to execute quantum circuits more effectively
- 13:17Speaker 2: on their cloud systems. It's about getting better performance and
- 13:20Speaker 2: managing the whole process better than just sending individual isolated jobs.
- 13:24Speaker 1: How does it do that?
- 13:25Speaker 2: One key feature is sessions. Imagine you have an algorithm
- 13:28Speaker 2: that needs to run a quantum circuit, then do some
- 13:31Speaker 2: classical processing, then run another related circuit, maybe iteratively.
- 13:35Speaker 1: Right, like machine learning or optimization.
- 13:37Speaker 2: Exactly if you submitted each circuit as a separate job
- 13:40Speaker 2: you keep going back to the end of the queue.
- 13:42Speaker 2: For the quantum computer, it would take forever and the
- 13:44Speaker 2: system's state might change between your runs. Sessions guarantee you
- 13:48Speaker 2: dedicated access to a quantum processor for a block of
- 13:51Speaker 2: related computations. It's huge for reducing weight times and ensuring consistency.
- 13:57Speaker 1: That sounds essential for complex tasks really is.
- 14:00Speaker 2: And within run time you interact using primitives. These are
- 14:03Speaker 2: like standardized interfaces for common quantum tasks. They abstract away
- 14:08Speaker 2: some of the hardware variation, like what kind of tasks.
- 14:11Speaker 2: The main ones currently are the sampler and the estimator.
- 14:14Speaker 2: The sampler primitive, for example, is designed for algorithms where
- 14:17Speaker 2: you primarily care about the probability distribution of the measurement outcomes.
- 14:20Speaker 2: You run the search up many times and it gives
- 14:23Speaker 2: you back the counts or quasi probabilities for each result.
- 14:26Speaker 1: Okay, so run time and primitives help manage the execution,
- 14:29Speaker 1: But what about the noise itself? What are we actually
- 14:31Speaker 1: fighting against?
- 14:32Speaker 2: Right the noise? There are a few main culprits. The
- 14:35Speaker 2: big one is decoherence. This is the general loss of
- 14:38Speaker 2: that delicate quantumness.
- 14:40Speaker 1: Losing the quantum magic.
- 14:41Speaker 2: Pretty much It breaks down into two main types. There's
- 14:44Speaker 2: T one time, or relaxation time. That's a long it
- 14:47Speaker 2: takes for a quibit in an excited state like one,
- 14:49Speaker 2: you to naturally decay back down to its ground state zero,
- 14:53Speaker 2: like a hot cup of coffee.
- 14:54Speaker 1: Cooling down, okay, losing energy.
- 14:56Speaker 2: Then there's T two time, or dephasing time. This is
- 15:00Speaker 2: about losing the phase coherence, the precise alignment of the
- 15:02Speaker 2: quantum wave. It's caused by random fluctuations in the Quibbitts environment.
- 15:07Speaker 2: Think of it like trying to keep a group of
- 15:09Speaker 2: spinners perfectly synchronized. When there's random jittering, they drift apart.
- 15:13Speaker 2: T two is usually much shorter than T one, making
- 15:16Speaker 2: phase control really tricky.
- 15:18Speaker 1: So energy loss and phase drift what else?
- 15:21Speaker 2: You also have gate errors. The physical pulses used to
- 15:24Speaker 2: implement quantum gits aren't perfectly precise, so rotation might be
- 15:28Speaker 2: slightly off or introduce unwanted phase shifts and finally, readout errors.
- 15:33Speaker 2: Even measuring the quibet's final state isn't perfect. Sometimes you
- 15:36Speaker 2: measure a zero when it was actually a one, or
- 15:38Speaker 2: vice versa.
- 15:38Speaker 1: Well, it sounds like a mindfield. How do you even
- 15:40Speaker 1: know how bad the noise is on a particular machine.
- 15:42Speaker 2: Quisket actually lets you characterize the noise. You can run
- 15:46Speaker 2: calibration experiments to measure T one T two gate errors,
- 15:50Speaker 2: readout errors for a specific device, and then build a
- 15:53Speaker 2: noise model based on that data. You can use this
- 15:56Speaker 2: model in simulations to predict how noise will affect your
- 15:59Speaker 2: algorithm before running it on the real thing.
- 16:01Speaker 1: That's useful. So knowing the enemy, how do you fight it?
- 16:05Speaker 2: Two main strategies, error suppression and aer mitigation suppression. First,
- 16:09Speaker 2: air suppression techniques try to actively reduce the effect of
- 16:13Speaker 2: noise during the computation itself. A key example is dynamical decoupling.
- 16:18Speaker 2: During times when equip it is supposed to be idle
- 16:20Speaker 2: waiting for other operations, it's vulnerable to dephasing. Dynamical decoupling
- 16:25Speaker 2: inserts sequences of carefully timed pulses, often simple excates that
- 16:29Speaker 2: effectively refocus the corbet's phase, canceling out some of the
- 16:33Speaker 2: slow drift caused by noise.
- 16:34Speaker 1: Like constantly nudging it back on track.
- 16:36Speaker 2: Kind of yeah. It actively fights the diffusion of the
- 16:39Speaker 2: quantum state.
- 16:39Speaker 1: Okay, and error mitigation, how is that different?
- 16:42Speaker 2: Aerror. Mitigation doesn't necessarily prevent the errors from happening. Instead,
- 16:46Speaker 2: it assumes errors will happen, runs the computation anyway, often
- 16:50Speaker 2: multiple times with variations, and then uses classical post processing
- 16:54Speaker 2: techniques to estimate what the ideal noise free result would
- 16:58Speaker 2: have been.
- 16:58Speaker 1: AH, so you clean up the results afterwards using.
- 17:01Speaker 2: Statistics essentially yes techniques like zero noise extrapolation ZNE, where
- 17:06Speaker 2: you deliberately amplify the noise and extrapolate back to the
- 17:09Speaker 2: zero noise point, or probabilistic error cancelation PECK, which learns
- 17:14Speaker 2: the errors and tries to invert them statistically. Quis GET
- 17:17Speaker 2: run Time incorporates these into different resilience levels you can choose.
- 17:21Speaker 2: They use extra classical computation, but are crucial for getting
- 17:24Speaker 2: useful answers from today's noisy intermediate scale quantum and ice
- 17:28Speaker 2: Q devices and ice Q that's.
- 17:30Speaker 1: The current era, right noisy, not quite fault tolerant yet exactly.
- 17:34Speaker 2: We don't have enough quibits or low enough error rates
- 17:36Speaker 2: for full quantum error correction yet, so suppression and mitigation
- 17:39Speaker 2: are absolutely vital.
- 17:41Speaker 1: This battle against noise really highlights the engineering challenge, but
- 17:45Speaker 1: it's leading somewhere exciting the idea of quantum advantage right.
- 17:50Speaker 2: Quantum advantage is the point where a quantum computer can
- 17:52Speaker 2: solve a specific problem faster or more accurately than the
- 17:56Speaker 2: best possible classical computer, regardless of how big or powerful
- 18:00Speaker 2: that classical computer is.
- 18:01Speaker 1: And are we seeing signs of that we are?
- 18:04Speaker 2: IBM Quantum had a significant result in twenty twenty three
- 18:08Speaker 2: using their one hundred and twenty seven quo bit Eagle processor.
- 18:11Speaker 2: They demonstrated calculations related to material science that were complex
- 18:15Speaker 2: enough to be beyond exact simulation by even the most
- 18:18Speaker 2: powerful classical supercomputers using brute force methods. It was a
- 18:22Speaker 2: major step showing potential for quantum utility even before fault tolerance.
- 18:27Speaker 1: That's huge. So what kinds of algorithms actually deliver this
- 18:30Speaker 1: speed up? Can we look at some example?
- 18:32Speaker 2: Absolutely, some of the earliest foundational algorithms really showed the
- 18:35Speaker 2: potential for speed up, even if the problems they solved
- 18:37Speaker 2: were a bit academic.
- 18:39Speaker 1: Like Deutsch's algorithm okay, wud that do?
- 18:41Speaker 2: It solves a very simple problem. You have a function
- 18:43Speaker 2: that takes one bit in and gives one bit out.
- 18:45Speaker 2: Is the function constant always output zero or always outputs
- 18:48Speaker 2: one or balanced output zero for one input one for
- 18:51Speaker 2: the other.
- 18:51Speaker 1: Classically, you'd have to test both inputs.
- 18:53Speaker 2: Right, two checks exactly two queries to the function. Quantumly,
- 18:58Speaker 2: Deutsch's algorithm solves it with just one query. It uses
- 19:01Speaker 2: superposition and interference to check both possibilities at once.
- 19:05Speaker 1: One query instead of two. Okay, maybe not world changing,
- 19:08Speaker 1: but it proved the concept.
- 19:09Speaker 2: It was revolutionary at the time. Then came Deutsch Jozza.
- 19:13Speaker 2: It generalizes the idea to functions with ended inputs. Determining
- 19:17Speaker 2: if that kind of function is constant or balanced Classically
- 19:21Speaker 2: could take potentially many queries up to two to the
- 19:24Speaker 2: power of n one plus one in the worst.
- 19:26Speaker 1: Case, exponentially harder.
- 19:27Speaker 2: Right, quantumly still just one query.
- 19:30Speaker 1: One query. That's astonishing.
- 19:32Speaker 2: It really demonstrates the power of quantum parallelism. And then
- 19:35Speaker 2: there's Bernstein Vaserani. It finds a hidden secret string used
- 19:39Speaker 2: in a specific type of function. Classically, you need end
- 19:42Speaker 2: queries where n is the length of the string. Quantumly,
- 19:45Speaker 2: again just one query.
- 19:46Speaker 1: Okay. These sound amazing, but maybe like mathematical puzzles, did
- 19:50Speaker 1: they connect to real world problems?
- 19:52Speaker 2: They were crucial stepping stones. They proved speed ups were
- 19:55Speaker 2: possible and inspired further insearch. They laid the groundwork for
- 19:59Speaker 2: algorithms with more or direct applications, like the quantum Fourier
- 20:03Speaker 2: transform QFT.
- 20:04Speaker 1: QFT related to the classical Fouria transform.
- 20:08Speaker 2: Very much, so it's a quantum version that operates on
- 20:11Speaker 2: quibit amplitudes. It's incredibly important because it's a key component
- 20:15Speaker 2: in some of the most powerful quantum algorithms we know,
- 20:18Speaker 2: most famously Shores algorithm for factoring large numbers.
- 20:21Speaker 1: AH, the one that potentially breaks modern cryptography.
- 20:25Speaker 2: That's the one. QFT allows Shores algorithm to find the
- 20:28Speaker 2: period of a function exponentially faster than any known classical method,
- 20:33Speaker 2: and finding that period is the key to factoring.
- 20:35Speaker 1: So QFT is a vital subroutine. What about searching? Is
- 20:38Speaker 1: there a quantum way to find a needle in a
- 20:40Speaker 1: haystack faster?
- 20:41Speaker 2: There is? That's Grover's search algorithm. Imagine you have a
- 20:45Speaker 2: huge unsorted database or list with n items, and you're
- 20:48Speaker 2: looking for one specific item.
- 20:50Speaker 1: Classically, you might have to check on average half of
- 20:52Speaker 1: them right and two worst case all in correct.
- 20:55Speaker 2: Grover's algorithm gives you a quadratic speed up. It can
- 20:59Speaker 2: find the item in roughly the square root of n iterations,
- 21:02Speaker 2: so for a million items, instead of five hundred thousand checks,
- 21:05Speaker 2: it's more like one thousand.
- 21:08Speaker 1: Square root en that's still a significant speed up for
- 21:11Speaker 1: large end. How does it work.
- 21:12Speaker 2: It's clever. It uses two main steps repeatedly. First, an
- 21:16Speaker 2: oracle operation marks the target item, usually by flipping its phase,
- 21:20Speaker 2: making it negative. It doesn't know which item is right,
- 21:22Speaker 2: but it can recognize it if.
- 21:23Speaker 1: It sees it, so it tags the winner right.
- 21:26Speaker 2: Then. The second step is a diffusion operator, sometimes called
- 21:29Speaker 2: amplitude amplification. This operation essentially takes the average amplitude of
- 21:34Speaker 2: all items and reflects every item's amplitude about that average.
- 21:38Speaker 2: The result is that the tagged items amplitude, which was negative,
- 21:41Speaker 2: gets boosted significantly, while all the others get reduced using
- 21:45Speaker 2: interference again exactly. You repeat these two steps about sen
- 21:48Speaker 2: in times, and the probability of measuring the correct item
- 21:50Speaker 2: becomes very high.
- 21:51Speaker 1: Okay, these algorithms are powerful, but building them gate by
- 21:55Speaker 1: gait dealing with noise models, it sounds complex for someone
- 21:58Speaker 1: who just wants to apply quantum to their field.
- 22:02Speaker 2: It definitely can be, and that's why IBM introduced quisket patterns.
- 22:05Speaker 2: It's a higher level way of thinking about and building
- 22:08Speaker 2: quantum applications patterns.
- 22:10Speaker 1: Like design patterns and software.
- 22:12Speaker 2: Engineering sort of.
- 22:13Speaker 1: Yeah.
- 22:13Speaker 2: The idea is to provide reusable templates or workflows that
- 22:17Speaker 2: abstract away a lot of the low level complexity. It
- 22:20Speaker 2: lets computational scientists or domain experts focus more on their
- 22:24Speaker 2: problem and less on the nitty gritty quantum circuit details
- 22:28Speaker 2: or hardware specifics.
- 22:29Speaker 1: How does it work? Is their standard process?
- 22:31Speaker 2: Yes. Quisket patterns generally follows four steps. First is map.
- 22:36Speaker 2: This is where you define your problem and figure out
- 22:38Speaker 2: the best way to encode your classical data or problem
- 22:41Speaker 2: structure into a quantum circuit or.
- 22:43Speaker 1: State, getting the problem into quantum language precisely.
- 22:47Speaker 2: Second is optimize. This step takes the con sexual circuit
- 22:51Speaker 2: and adapts it for the real world. It involves transpiling
- 22:54Speaker 2: it for the specific quantum hardware you'll use, and crucially
- 22:57Speaker 2: applying those error suppression and mitigation techniques.
- 22:59Speaker 1: We talk making it robust.
- 23:01Speaker 2: Third is execute. This is where you actually run the
- 23:04Speaker 2: optimized circuit, usually using qris gut runtime, and it's primitives
- 23:08Speaker 2: like the sampler on your chosen back end could be
- 23:11Speaker 2: a simulator or a real quantum device.
- 23:13Speaker 1: Run the job, and.
- 23:15Speaker 2: Fourth is post process. You take the raw results from
- 23:18Speaker 2: the quantum computer, which might be probability distributions or measurement counts,
- 23:22Speaker 2: and process them, analyze them, maybe feed them into a
- 23:25Speaker 2: classical algorithm, and format them into the answer you need
- 23:29Speaker 2: for your application.
- 23:30Speaker 1: Map, optimize, execute, post process. That sounds much more manageable.
- 23:36Speaker 1: Can you give an example?
- 23:37Speaker 2: Sure, The book uses a fun one called the rock
- 23:39Speaker 2: band problem. Imagine you have a logical expression describing which
- 23:43Speaker 2: musicians can play together. Maybe the drummer and bassis have issues,
- 23:46Speaker 2: but the singer needs the guitarist. Things like that. You
- 23:49Speaker 2: want to find valid band combinations.
- 23:51Speaker 1: Okay, a constraint satisfaction problem exactly.
- 23:54Speaker 2: Using quiskit patterns with Grover's algorithm, you wouldn't necessarily need
- 24:00Speaker 2: to manually build the oracle circuit that recognizes valid bands.
- 24:04Speaker 2: You could potentially just define the logical expression itself and
- 24:07Speaker 2: the pattern would handle mapping it to the appropriate Grover instance,
- 24:11Speaker 2: optimizing it, running it, and giving you back the satisfying
- 24:14Speaker 2: assignments with valid band lineups.
- 24:17Speaker 1: Wow, so it abstracts away the oracle construction. That's huge
- 24:20Speaker 1: for Grover's algorithm.
- 24:21Speaker 2: It aims too. Yes, it makes these powerful algorithms much
- 24:24Speaker 2: more accessible for solving practical problems.
- 24:27Speaker 1: So what a journey We've gone from the weirdness of
- 24:30Speaker 1: quantum mechanics superposition, entanglement.
- 24:33Speaker 2: Interference all the way through the practical tools like the
- 24:36Speaker 2: IBM Quantum platform and crisket, the gates that manipulate quibits, tackle.
- 24:41Speaker 1: The challenge of noise and how we fight it with
- 24:44Speaker 1: suppression and.
- 24:44Speaker 2: Mitigation, and explore these incredible algorithms like Deutsche Jersa Grovers
- 24:48Speaker 2: and the concepts behind QFT showing real quantum speed ups.
- 24:52Speaker 2: And finally, how things like quisket patterns are trying to
- 24:55Speaker 2: make it all easier to use.
- 24:57Speaker 1: It really feels like we're moving into a new phase,
- 24:59Speaker 1: doesn't it, This era of quantum utility where even noisy
- 25:02Speaker 1: machines can start tackling problems classical computers.
- 25:05Speaker 2: Struggle with absolutely And that brings us to the final
- 25:09Speaker 2: thought for you, the listener. As these quantum computers become
- 25:12Speaker 2: more capable, even before they're perfectly fault tolerant, think about this,
- 25:18Speaker 2: what problem in your field? Something that seems computationally intractable today, Yeah,
- 25:23Speaker 2: could potentially be unlocked by this technology. How might you
- 25:27Speaker 2: start thinking about mapping that problem onto a quantum state,
- 25:30Speaker 2: preparing for this next wave of computation.
- 25:33Speaker 1: That's a fantastic question to ponder. The journey really has
- 25:36Speaker 1: just begun, and who knows what possibilities will open up next.
- 25:39Speaker 1: It's an exciting time to be watching this space.