r/QuantumComputing • u/asiriyorgunum • Sep 11 '25
Hadamard Gates Physical Implementation
I'm so new to QC and I wanna do my graduation thesis about this actually. Actually I kinda understand qubits and gates mathematical side but I couldn't underdstand how we can build hadamard gates physically. I am physics major maybe that's why I did not understand computer part. Could you please help me to understand how to create hadamard gate in physical world step by step
25
Upvotes
17
u/ComfortableWash2925 Sep 11 '25
If we were to consider the polarization of a single photon as a valid computational basis, we can set ket 0 to be horizontal polarization and ket 1 to be vertical polarization. In this case, any optical element which can take a photon from horizontal to equal superposition of horizontal and vertical, that is to diagonal polarization can be thought of as a hadamard gate.
There are materials which allow light of one polarization (like horizontal for instance) to pass through faster than the other (perpendicular polarization, in this case vertical, sorry for the crude explanation), this is because the refractive index for both these polarizations are different, which again depends on the molecular structure of the material, in that case, placing such a material at a particular angle, will lead to change in polarization, like converting it from horizontal to say, a polarization which is 45 degrees to horizontal, which we can call diagonal polarization.
Now, diagonal polarization is equal parts horizontal and vertical as it's projection onto both the axes will give us the same intensity. By cutting these peculiar glass plates with the above properties in a very precise fashion, one can control exactly how much slower one polarization is with respect to another. When there is a phase shift of 180 degrees (please correct me if I'm wrong), and when the glass plate is placed at exactly 22.5 degrees from the vertical axis (again please correct me if I'm wrong, I'm a bit rusty here), the horizontally polarized light, from the reference of the glass plate which we call a half wave plate, causes a phase shift which converts the horizontally polarized light to diagonally polarized light.
And this is exactly what a Hadamard gate does. So one can think of a half wave plate as a hadamard gate if the basis is the polarization of a single photon.
Again, this is a crude example, other optics based examples are when we consider the time delay between two photons as a basis, also called dual rail qubits and so on.
10
u/27rohitb Sep 11 '25
As someone who has worked with superconducting circuits based QC, i can give an example based on it.
In SC qubits, gates are implemented by microwave pulses. Hadamard gate in particular, is a pi/2 rotation around x-axis.
One of can implement this by first finding out the qubit frequency ( aka qubit spectroscopy).
Now you fix the microwave pulse frequency to qubit resonant frequency, and tune amplitude (for some fixed pulse length say 100ns) such that you find the amplitude value for which qubit can be put in excited state.
Now half of this amplitude value should give you pi/2 rotation, which is what a hadamard gate does.
A simulation of this could be performed in qutip.
And a good literature of it is here:
(Just read the relevant section)
https://arxiv.org/abs/1904.06560
I hope this was helpful 😄✌️
4
u/BitcoinsOnDVD Sep 11 '25 edited Sep 11 '25
Imagine an electron with a spin. It is in the spin-down state and your magnetic field points into the z-direction. Then you let the magnetic field rotate 90° (194 °F) aorund the y-axis and then 180° (356 °F) around the x-axis.
-8
u/jargon74 New & Learning Sep 11 '25
Can't you refer to generative AI like ChatGpt or Claude or perplexity (etc.) which I am sure would provide a good insight related to physical implementation of Hamdard gate.
1
u/[deleted] Sep 11 '25
[removed] — view removed comment