B Quantum Computing for Beginners: Understanding Double Hadamard Gates

Quark Effect
Messages
9
Reaction score
4
TL;DR Summary
Cannot entirely understand why some of the terms cancel each other out while double Hadamard gates are applied.
Hi guys, I am an absolute beginner in quantum computing. I am really curious about its mechanics but my lack of knowledge in mathematics makes me struggle. I cannot entirely understand why numbers |1> cancel each other out while double Hadamard gates are applied. If the rule is to cancel out the same numbers, why then |0> stays the same, as well as the √2? Thanks

cancelling out0.png
 
Physics news on Phys.org
Quark Effect said:
I cannot entirely understand why numbers |1> cancel each other out while double Hadamard gates are applied.

The ##0## and ##1## inside the kets ##|0\rangle## and ##|1\rangle## are not numbers; they're labels for basis vectors in a vector space. You could just as well call them ##|A\rangle## and ##|B\rangle##, or ##|\text{Laurel}\rangle## and ##|\text{Hardy}\rangle## for that matter, and everything would be the same.

The rule for adding vectors is that you add them component by component, i.e., you add up all the terms involving each basis vector separately. So you have:

$$
\frac{1}{\sqrt{2}} \left( \frac{|0\rangle + |1\rangle}{\sqrt{2}} + \frac{|0\rangle - |1\rangle}{\sqrt{2}} \right)
$$

equals

$$
\frac{1}{\sqrt{2}} \left( \frac{|0\rangle}{\sqrt{2}} + \frac{|1\rangle}{\sqrt{2}} + \frac{|0\rangle}{\sqrt{2}} - \frac{|1\rangle}{\sqrt{2}} \right)
$$

equals

$$
\frac{1}{\sqrt{2}} \left( (1 + 1) \frac{|0\rangle}{\sqrt{2}} + (1 - 1) \frac{|1\rangle}{\sqrt{2}} \right)
$$

equals

$$
\frac{1}{\sqrt{2}} \left( 2 \frac{|0\rangle}{\sqrt{2}} \right)
$$

equals

$$
|0\rangle
$$
 
  • Like
  • Love
Likes Quark Effect and vanhees71
PeterDonis said:
The ##0## and ##1## inside the kets ##|0\rangle## and ##|1\rangle## are not numbers; they're labels for basis vectors in a vector space. You could just as well call them ##|A\rangle## and ##|B\rangle##, or ##|\text{Laurel}\rangle## and ##|\text{Hardy}\rangle## for that matter, and everything would be the same.

The rule for adding vectors is that you add them component by component, i.e., you add up all the terms involving each basis vector separately. So you have:

$$
\frac{1}{\sqrt{2}} \left( \frac{|0\rangle + |1\rangle}{\sqrt{2}} + \frac{|0\rangle - |1\rangle}{\sqrt{2}} \right)
$$

equals

$$
\frac{1}{\sqrt{2}} \left( \frac{|0\rangle}{\sqrt{2}} + \frac{|1\rangle}{\sqrt{2}} + \frac{|0\rangle}{\sqrt{2}} - \frac{|1\rangle}{\sqrt{2}} \right)
$$

equals

$$
\frac{1}{\sqrt{2}} \left( (1 + 1) \frac{|0\rangle}{\sqrt{2}} + (1 - 1) \frac{|1\rangle}{\sqrt{2}} \right)
$$

equals

$$
\frac{1}{\sqrt{2}} \left( 2 \frac{|0\rangle}{\sqrt{2}} \right)
$$

equals

$$
|0\rangle
$$
Ahh, I see! I really appreciate your help, it's not the first time you are spending your time and patiently explaining me things. Thanks a lot man
 
Not an expert in QM. AFAIK, Schrödinger's equation is quite different from the classical wave equation. The former is an equation for the dynamics of the state of a (quantum?) system, the latter is an equation for the dynamics of a (classical) degree of freedom. As a matter of fact, Schrödinger's equation is first order in time derivatives, while the classical wave equation is second order. But, AFAIK, Schrödinger's equation is a wave equation; only its interpretation makes it non-classical...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. Towards the end of the first lecture for the Qiskit Global Summer School 2025, Foundations of Quantum Mechanics, Olivia Lanes (Global Lead, Content and Education IBM) stated... Source: https://www.physicsforums.com/insights/quantum-entanglement-is-a-kinematic-fact-not-a-dynamical-effect/ by @RUTA
Is it possible, and fruitful, to use certain conceptual and technical tools from effective field theory (coarse-graining/integrating-out, power-counting, matching, RG) to think about the relationship between the fundamental (quantum) and the emergent (classical), both to account for the quasi-autonomy of the classical level and to quantify residual quantum corrections? By “emergent,” I mean the following: after integrating out fast/irrelevant quantum degrees of freedom (high-energy modes...

Similar threads

Back
Top