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
 
I read Hanbury Brown and Twiss's experiment is using one beam but split into two to test their correlation. It said the traditional correlation test were using two beams........ This confused me, sorry. All the correlation tests I learnt such as Stern-Gerlash are using one beam? (Sorry if I am wrong) I was also told traditional interferometers are concerning about amplitude but Hanbury Brown and Twiss were concerning about intensity? Isn't the square of amplitude is the intensity? Please...
I am not sure if this belongs in the biology section, but it appears more of a quantum physics question. Mike Wiest, Associate Professor of Neuroscience at Wellesley College in the US. In 2024 he published the results of an experiment on anaesthesia which purported to point to a role of quantum processes in consciousness; here is a popular exposition: https://neurosciencenews.com/quantum-process-consciousness-27624/ As my expertise in neuroscience doesn't reach up to an ant's ear...
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

Similar threads

Back
Top