[Homemade Quantum Computer NMRQCP] The Magic of Deconstructing Waves: "FFT"

*Original Japanese version is available here.

The Magic of Deconstructing Waves: "FFT"

In the previous article, we saw that real-world signals are full of noise. This is where "FFT" (Fast Fourier Transform) comes into play.
FFT converts the horizontal axis to frequency, allowing us to visualize "which frequencies are included and how much" within that signal. It's like a prism that separates light into different colors.

  • To use a record player as an analogy, when the rotation speed doesn't match the data, the waves become scattered and cancel each other out.
  • However, when the speed matches the data perfectly, the peaks and troughs of the waves overlap, shifting the center of gravity.

We use this principle to find specific frequencies.

Standard calculations take \(N^2\) time, but FFT is called "fast" because it reduces the computational complexity to \(N \log N\). For processing real-number signals, I used the highly efficient "complex FFT (np.fft.rfft)". When I actually mixed two waves of 2100Hz and 2150Hz and ran them through the FFT, I discovered that if the frequencies are too close, they cannot be displayed clearly.

How do we control quantum states?

The procedure for manipulating qubits (nuclear spins) is as follows:

  1. Identify the frequency in Hz obtained via FFT (the frequency of the radio waves that the qubit can receive).
  2. Apply a manipulation pulse (radio wave) of that same frequency (Hz) to the qubit.
  3. The atom absorbs the energy, causing "resonance".
  4. The direction of the spin changes.
  5. Check the response signal (FID) with FFT after the pulse irradiation is complete.

When looking at the results, if there is no FFT peak, it means the state is "0 (no radio wave emitted)". If there is a peak, it indicates "1 or a superposition (the atom vibrates and emits a radio wave)". By adjusting the duration of this pulse irradiation, we can freely control the quantum states!


If you are wondering things like "Will it really work?" or "How do you generate waveforms?", please bookmark this blog and follow me on X!

コメント

このブログの人気の投稿

【自作量子コンピュータ NMRQCP】いよいよ稼働かと思いきやデバッグ地獄

【お知らせ】今後の開発記録はZennに移行します!