From the course: Cloud Quantum Computing Essentials
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Quantum superposition with Hadamard (H) gate
From the course: Cloud Quantum Computing Essentials
Quantum superposition with Hadamard (H) gate
- [Narrator] This next example is using an had or a Hadamard or an H gate. and this is a key concept in working with qubits. Because of the underlying capability you can place the qubit into what's called a super position and the way you want to think about this is if you had a penny with a front and back and the had method would allow you to start spinning the penny. So you then have this spinning penny and if you put your hand on the penny it'll either flatten on the thought surface as heads or tails, that's the read action. So hat has a couple characteristics, first of all, it's non-deterministic because every time you spin the penny and you then read it it could either be heads or tails which is a little bit hard to get your head around when we first start working with this. But as we build up from our quantum primitives you'll understand why this is important. So let's go ahead and run this in QC engine and you can…