Next Article in Journal
Dispersion Caused by the Penetration Effect in X-ray Compressors
Next Article in Special Issue
Experimental Direct Measurement of the Relative Entropy of Coherence
Previous Article in Journal
Guided-Wave Properties of Slow-Wave Substrate-Integrated Waveguide Patterned with Non-Uniform Metasurface Unit Cells with Various Degrees of Rotation
Previous Article in Special Issue
Time-Varying Engineered Reservoir for the Improved Estimation of Atom-Cavity Coupling Strength
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Velocity Filtering Using Quantum 3D FFT

by
Georgia Koukiou
* and
Vassilis Anastassopoulos
*
Electronics Laboratory, Physics Department, University of Patras, 26504 Patras, Greece
*
Authors to whom correspondence should be addressed.
Photonics 2023, 10(5), 483; https://doi.org/10.3390/photonics10050483
Submission received: 7 January 2023 / Revised: 13 April 2023 / Accepted: 19 April 2023 / Published: 22 April 2023
(This article belongs to the Special Issue Quantum Optics: Science and Applications)

Abstract

:
In this work, the quantum version of 3D FFT is proposed for constructing velocity filters. Velocity filters are desirable when we need to separate moving objects with a specific velocity range in amplitude and direction in a rapidly changing background. These filters are useful in many application fields, such as for monitoring regions for security reasons or inspecting processes in experimental physics. A faster and more attractive way to implement this filtering procedure is through 3D FFT instead of using 3D FIR filters. Additionally, 3D FFT provides the capability to create banks of ready-made filters with various characteristics. Thus, 3D filtering is carried out in the frequency domain by rejecting appropriate frequency bands according to the spectral content of the trajectory of the object to be isolated. The 3D FFT procedure and the corresponding inverse one are required in the beginning and end of the filtering process. Although 3D FFT is computationally effective, it becomes time-consuming when we need to process large data cubes. The implementation of velocity filters by means of the quantum version of 3D FFT is investigated in this work. All necessary quantum circuits and quantum procedures needed are presented in detail. This proposed quantum structure results in velocity filtering with a short execution time. For this purpose, a review of the necessary quantum computational units is presented for the implementation of quantum 3D FFT and representative examples of applications of velocity filtering are provided.

1. Introduction

Fast Fourier transform (FFT) provides a means for frequency analysis and filtering, avoiding the operation of convolution. The quantum version of Fourier transform (QFT) provides an opportunity to quickly obtain the results derived by FFT. The use of QFT has been investigated for various applications. Accordingly, in [1], it is proved that a quantum version of the filtering operation can be achieved, even though the quantum convolution of two sequences is physically impossible. There are important differences between classical and quantum implementations for image filtering. These differences are analyzed in [1], and it is shown that the major advantage of the quantum approach lies in the exploitation of the efficient implementation of QFT. A common approach to image filtering is to convolve the image with a filter function, which in the frequency domain translates into a multiplication operation. However, there are classical processing operations that cannot be directly applied to quantum images, such as convolution and correlation [2]. In [3], a survey is provided with some topics on the properties of quantum gates and their assembly into interesting quantum circuits. The role of reversibility in the theory of computation and an early discussion of gate and circuit constructions in reversible computation are also provided.
The application of QFT within the field of quantum computation has been extensively presented in [4]. Shor’s algorithm, phase estimation, and computing discrete logarithms are some classic examples of its use. These special properties of quantum algorithms have resulted in novel solutions to problems difficult to be solved on a classical computer. QFT has been used in several applications [5,6,7]. Since QFT is the core to a lot of quantum algorithms, current research mainly focuses on its effective realization [7,8,9,10,11,12,13]. These studies discuss quantum information issues [7], approximate QFT and decoherence [8], Shor’s algorithm [9,10], QFT for phase estimation [11], and quantum circuitry [12,13]. Quantum edge detection is carried out in [14] based on double-chain quantum genetic algorithms. Hybrid quantum-classical networks for image generation are proposed in [15].
A review of quantum image processing is presented in [16], revealing the possibilities for intensive image-processing procedures due to the powerful parallel computing capabilities of quantum computers. In [17], a quantum implementation of the FFT algorithm composed of a combination of quantum gates is proposed. QFT is implemented in [18] on a 3-qubit nuclear magnetic resonance (NMR) quantum computer to extract the periodicity of an input state. A fast quantum image component-labeling algorithm is proposed in [19], which is the quantum counterpart of the classical local operator technique. A quantum color image encryption algorithm is designed in [20] based on geometric transformation and intensity channel diffusion. A framework of quantum image filtering in the spatial domain is proposed in [21]. A quantum image median filtering approach is proposed and its corresponding quantum circuit is designed in [22]. The main idea of the approach is that first, the classical image is converted into a quantum version based on the novel enhanced quantum representation (NEQR) of digital images, and then, a unique quantum module is designed to realize the median calculation of neighborhood pixels for each pixel point in the image. In [23], the authors consider QFT-based color-image-filtering operations and their applications in image smoothing, sharpening, and selective filtering using quantum frequency domain filters. The proposed quantum filters use the principle of quantum oracles to implement the filter function.
The 3D FFT technique is useful in numerous physical problems. Four of these problems are listed next in order to provide the reader with a sense of the potential applicability of QFT. First-principles methods based on density functional theory (DFT) where the wave functions are expanded in plane waves (Fourier components) are the most widely used approaches for electronic structure calculations in materials science [24]. The scaling of this method depends critically on having an efficient parallel 3D FFT that minimizes communications and calculations. First-principles methods based on DFT in the Kohn–Sham (KS) [25] formalism are the most widely used approaches for electronic structure calculations in materials science. The most common implementation of this approach involves the expansion of the wave functions in plane waves (Fourier components) and the use of pseudopotentials to replace the nucleus and core electrons. In this implementation, parallel 3D FFT is required to transform the electronic wave functions from Fourier space to real space in order to construct the charge density. The 3D Fourier forward modeling of 3D density sources is capable of providing 3D gravity anomalies coinciding with the meshed density distribution within the whole source region [26]. Forward modeling of potential fields’ anomalies is essential for geophysical interpretation and inversion. An implicit split-operator FFT algorithm for the numerical solution of the time-dependent Schrodinger equation is implemented for the electronic structure of H 2 + and H 2 in [27]. In this article, an algorithm appropriate for 3D applications is implemented that is implicit and thus overcomes the difficulty of the non-conservation of energy.
The tracking and isolation of moving objects with a specific range of speed are a challenging research topic in the field of automotive application [28,29,30,31]. To cope with this issue, velocity filters have been used in the past for localizing and monitoring moving objects in image sequences or otherwise 3D imagery [32,33,34]. Filter banks are used for fast implementation of the localization and monitoring of moving vehicles. These banks are built using 3D FFT to perform directional filtering [28,29,30,31,32,33,34,35].
In this work, the way that basic quantum circuits are combined to build up the QFT structure is extensively presented. This structure is applied in the well-known separable procedure in order to implement 3D QFT. This way, the 3D spectral content of the data cube is evaluated. A quantum oracle is used for isolating the necessary frequency components in the 3D spectral cube that correspond to the required trajectory. In fact, a variety of quantum oracles are represented by the quantum filter used in order to realize the necessary filter bank. Inverse QFT (IQFT) is applied at the output of the quantum oracle to obtain the final result with the isolated moving object (trajectory). The implementation of velocity filters by means of the quantum version of 3D FFT results in fast filtering procedures, which are necessary for discriminating objects’ velocities. QFT can calculate the Fourier transform of a vector of size N with time complexity O ( l o g 2 2 N ) compared to the classical complexity of O N l o g 2 N [36]. However, if one wants to measure the full output state, then the QFT complexity becomes O ( N l o g 2 2 N ) , thus losing its apparent advantage, indicating that the advantage is fully exploited for algorithms when only a limited number of samples is required from the output vector, as is the case in many quantum algorithms. Accordingly, for a signal of 1024 samples, QFT requires operations of the order of 100, while classical FFT requires operations of the order of 10,000.
The paper is organized in the following way. In Section 2, the quantum theory for supporting QFT is presented. The velocity filtering approach is provided in Section 3. In Section 4, the use of QFT for implementing velocity filters is analyzed. Experimental results are presented in Section 5. Finally, conclusions are drawn in Section 6.

2. Quantum Theory

2.1. Quantum Fourier Transform Theory

Fourier transform occurs in many different versions in all areas from signal processing to complexity theory to data compression [37,38,39]. QFT is the classical discrete Fourier transform applied to a vector of amplitudes of a quantum state, where we usually consider vectors of length N .
Discrete Fourier transform acts on a vector x 0 ,   x 1 ,   ,   x N 1 C N and maps it to a vector y 0 ,   y 1 ,   ,   y N 1 C N according to the formula
y k = 1 N j = 0 N 1 x j ω N j k , k = 0 , 1 , 2 , 3 ,   ,   N 1
where ω N j k = e 2 π i N j k and ω N j is the j-th root of unity.
Similarly, QFT acts on a quantum state | x = j = 0 N 1 x j | j and maps it to a quantum state | y = k = 0 N 1 y k | k according to the formula
y k = 1 N j = 0 N 1 x j ω N j k , k = 0 , 1 , 2 , 3 ,   ,   N 1
Since ω N j k is a rotation, IQFT acts similarly:
x j = 1 N k = 0 N 1 y k ω N j k , j = 0 , 1 , 2 , 3 ,   ,   N 1
In case | j is a basis state, QFT can also be expressed as the map
| j 1 N k = 0 N 1 ω N j k | k
Equivalently, QFT can be viewed as a unitary matrix (or quantum gate) acting on quantum-state vectors, where the unitary matrix F N is given by
F N = 1 N 1 1 1 1 1 1 ω ω 2 ω 3 ω Ν 1 1 ω 2 ω 4 ω 6 ω 2 Ν 1 1 ω 3 ω 6 ω 9 ω 3 Ν 1 1 ω Ν 1 ω 2 Ν 1 ω 3 Ν 1 ω Ν 1 Ν 1
where ω = ω N .
Most of the properties of QFT follow from the fact that it is a unitary transformation. This can be checked by performing matrix multiplication and ensuring that the relation F F + = F + F = I holds, where F + is the Hermitian adjoint of F . Alternately, one can check that orthogonal vectors of norm 1 get mapped to orthogonal vectors of norm 1.
From the unitary property, it follows that the inverse of quantum Fourier transform is the Hermitian adjoint of the Fourier matrix, so F 1 = F + . Since there is an efficient quantum circuit implementing QFT, the circuit can be run in reverse to perform IQFT. Thus, both transforms can be efficiently performed on a quantum computer.
QFT transforms between two bases, the Fourier basis and the computational basis (Z). The H gate is single-qubit QFT, and it transforms between the Z-basis states | 0 and | 1 to the X-basis states | + and | . In the same way, all multi-qubit states in the computational basis have corresponding states in the Fourier basis. QFT is simply the transform that transforms between these bases.

2.2. The Circuit Implementation of QFT

The circuit implementation of QFT makes use of two gates. One of them is the single-qubit Hadamard gate H = 1 2 1 1 1 1 , and the other is the phase gate R m = 1 0 0 e 2 π i / 2 m .
Consider how QFT operates on a single-qubit state (1-qubit QFT) | ψ = a | 0 + b | 1 , where x 0 = a , x 1 = b and N = 2 .
y 0 = 1 2 a · e 2 π i 2 0 × 0 + b · e 2 π i 2 1 × 0 = 1 2   a + b
and
y 1 = 1 2 a · e 2 π i 2 0 × 1 + b · e 2 π i 2 1 × 1 = 1 2   a b
so the final result is the state
U Q F T | ψ = 1 2 a + b | 0 + 1 2 a b | 1
This operation is exactly the result of applying the Hadamard gate to the qubit. If we apply the Hadamard gate to the state | ψ = 0 + b | 1 , we obtain a new state:
1 2 a + b | 0 + 1 2 a b | 1 a ¯ | 0 + b ¯ | 1
The Hadamard gate H for n qubits is given as
H 2 n = H 2 H 2 n 1 ,   2 n N
where is the Kronecker product, i.e., for n = 2 , we have the Hadamard gate H 4
H 2 2 = H 4 = H 2 H 2 2 1 = H 2 H 2 = 1 2 1 1 1 1 1 2 1 1 1 1 = 1 2 1 + 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Given these two gates, a circuit implementation of n-qubit QFT is shown in Figure 1 [34,35,37].
The basis states that enumerate all possible states of the n qubits are
| x = | x 1 x 2 | x 3 x n 1 | x n
where | x k indicates that qubit k is the state x k , with x k being either 1 or 0. The basis state index x is the binary number encoded by x k , with x 1 being the most significant bit. So, we can write the QFT as
Q F T ( | x ) = 1 N k = 1 n ( 0 + e 2 π i x / 2 k | 1
After rearranging the sum and the products and expanding y = 0 N 1 = y 1 = 0 1 y 2 = 0 1 y n = 0 1 , the action of the QFT can be expressed by
Q F T   | x 1 x 2 x 3 x n 1 x n = 1 N | 0 + e 2 π i x n 2 | 1 | 0 + e 2 π i x n 1 2 + 2 π i x n 2 2 | 1   ( | 0 + e 2 π i x 1 2 + 2 π i x 2 2 2 + 2 π i x 3 2 3 + + 2 π i x n 1 2 n 1 + 2 π i x n 2 n | 1 )
i.e., for 3-qubit QFT
| y = 1 2 3 [ ( | 0 + e 2 π i x 3 2 | 1 ) ( | 0 + e 2 π i x 2 2 + 2 π i x 3 2 2 | 1 ) ( | 0 + e 2 π i x 1 2 + 2 π i x 2 2 2 + 2 π i x 3 2 3 | 1 ) ]
In a similar way, one can extend to N-qubit QFT if a larger amount of information is to be processed.

3. Theory of Velocity Filtering

Studies [28,29] have carried out velocity filtering using filter banks created using conventional FFT, and simultaneously, they are selected by means of the specific spectral content required. In this work, all necessary spectral quantities are evaluated using QFT for radically accelerating the mathematical calculations. A bank of velocity filters [28] is necessary for separating multiple objects with different velocities in a sequence of frames. In [28], the 3D FFT transformation of a large number of objects with a variety of different velocities is applied. The proposed approach is based on experimentation and avoids using theoretical concepts. Accordingly, in this study, an object moving each time with a different velocity and in various directions was used in order to construct a filter bank. Multiple moving objects can be isolated from other objects with different velocities or from objects with the same amplitude of velocity but having different directions. The simulated datasets that were used in order to create the spectral signatures of different moving objects consisted of 256 frames of 256 × 256 pixels each. Accordingly, a data cube (shown in Figure 2) was formed of 2563 pixels. The number 256 = 28 was selected to fit the FFT requirements for fast evaluation of the 3D spectrum.
The time parameter is considered the distance from frame to frame. Based on this, the amplitude of the radial velocity of each object is referred to as the number of pixels it comes across from one frame to the next. A simple example of one object of size 10 × 10 pixels that is moving with a radial velocity of 1/3 pixels per frame is shown in Figure 3. The object is moving in the direction of 340 degrees with respect to the horizontal left-to-right direction. Four different frames are given, i.e., the 1st, 64th, 128th, and 256th.
The datasets used for experimentation covered a wide range of velocities with regard to the amplitude and direction. Specifically, six different radial velocities (amplitudes) were selected, i.e., 1/2 (fast), 1/3, 1/4, 1/8, 1/16, and 1/32 (slow) pixels per frame. For all these velocities, 24 different directions were chosen, with the first one at 0 degrees (horizontal direction from left to right) and counterclockwise every 15 degrees, as shown in Figure 4. Accordingly, a total of 6 × 24 = 144 different data cubes (velocities) were implemented.
Since the spectrum is a complex quantity, its amplitude and phase were evaluated separately. Parallel trajectories in the data cube that correspond to objects having the same velocity possess the same spectral amplitude information and differ in the phase information. Accordingly, regardless of the initial position of an object, its velocity corresponds to a specific amplitude of the spectral content. Thus, only the amplitude information is of interest and was recorded.
Studying the amplitude of the spectral content of a data cube, one can easily observe that from the total of 2563–224–16 million harmonics, only a small percentage has significant value. Thus, for each direction of the moving object with a specific velocity, a file that contained the positions of the most important harmonics (about 4000) was created, as those spectral components that are larger than the 12% (pixel value 30 with maximum 255) of the biggest spectral component are considered important harmonics.
However, later, when it is necessary to process complicated signals, the 20 largest harmonics among the 4000 will be recalled and their use in the final filter will be examined again. This is needed when in the signal to be processed, the vehicle to be recorded is not among the strongest objects.
To isolate an object moving with a specific velocity (velocity filtering) among other objects in a data cube, we need to perform the following steps:
1. Find the spectral content of the specific cube 3D FFT.
2. Eliminate from the spectral amplitude all harmonics except those corresponding to the specific velocity.
3. Evaluate the inverse 3D FFT to recover the data cube containing only the object with the specific velocity.

4. Implementation of Velocity Filtering Using QFT

4.1. Three-Dimensional Discreet Fourier Transform

The 3D discreet Fourier transform technique is a separable procedure. This comes from the fact that its expression
p k 1 , k 2 ,   k 3 = n 1 = 0 N 1 n 2 = 0 N 1 n 3 = 0 N 1 q n 1 , n 2 , n 3   W N k 1 n 1 W N k 2 n 2 W N k 3 n 3   0 k 1 , k 2 , k 3 N 1
can be written as follows:
p k 1 , k 2 ,   k 3 = n 1 = 0 N 1 W N k 1 n 1 n 2 = 0 N 1 W N k 2 n 2 n 3 = 0 N 1 q n 1 , n 2 , n 3   W N k 3 n 3 0 k 1 , k 2 , k 3 N 1
The first summation on the right of this equation means that we must perform N2 N-point discreet Fourier transforms along the n3 direction. Since each N-point FFT (for N being a power of 2) requires N log2 N operations, for the implementation of the first summation of Equation (17), N3 log2 N operations are needed. The derived intermediate result is an N3 complex cube to be again processed along the n2 direction. Thus, another set of N3 log2 N complex operations is required. The second derived intermediate result is again an N3 complex cube to be finally processed along the n1 direction. Thus, a total of 3N3 log2 N of complex operations are required. Following another way, we must perform N-point FFT along all horizontal lines, all horizontal columns, and all vertical columns regardless of the order in which they will be performed.
An example of 3D FFT is shown in Figure 5 for N = 4. From this figure and Equation (17), it is evident that the order of implementation of the 1D transforms, i.e., the order of the summations in Equation (17), does not matter. In image cubes (frame sequences), one of the dimensions is usually time.

4.2. Quantum 3D Fast Fourier Transform

A quantum cube can be represented using a quantum register Q constructed so that it encodes all required information, i.e., the position of a pixel in the frame (x, y), the serial number of the frame (time t), and the intensity or color (c) of the pixel [24]. We assumed that we have 2k frames with 2n × 2n pixels each and that the color of each pixel requires m bits for its color representation. In this case, a register |P > having 2n qubits is adequate for holding all position information, another register |T> having k qubits will represent the time information, and a register |C > with m qubits will represent 2m different colors or grayscale levels. The register |P > is separated into two sub-registers of n qubits each containing the row and column information in the form |y > |x >. The quantum register Q containing all the information about the quantum frame cube can be expressed as
Q = C > m P > 2 n T > k = t = 0 2 k 1 i = 0 2 2 n 1 j = 0 2 m 1 a i j t j i t
In Equation (18), the coefficients aijt for a specific t (frame of the cube) sum up to 1:
j = 0 2 m 1 a i j t 2 = 1   for   all   i   with   0 i < 2 2 n   and   all   t   with   0 t < 2 k
and are used to express the color of a pixel with position i by means of a superposition of all possible colors. For a given pixel i, the coefficients aij take the value of 1 if the color of the pixel is j and 0 otherwise. This is illustrated in Figure 6 with a simple example of a 2 × 2 × 2 frame cube with eight colors (0–7). The corresponding coefficients aijt for the specific examples in Figure 6 are as follows:
  p c t   p c t     p c t     p c t     p c t     p c t     p c t     p c t a 000 = 1 , a 010 = 0 , a 020 = 0 , a 030 = 0 , a 040 = 0 , a 050 = 0 , a 060 = 0 , a 070 = 0 a 100 = 0 , a 110 = 0 , a 120 = 1 , a 130 = 0 , a 140 = 0 , a 150 = 0 , a 160 = 0 , a 170 = 0 a 200 = 0 , a 210 = 0 , a 220 = 0 , a 230 = 0 , a 240 = 1 , a 250 = 0 , a 260 = 0 , a 270 = 0 a 300 = 0 , a 310 = 0 , a 320 = 0 , a 330 = 0 , a 340 = 0 , a 350 = 0 , a 360 = 1 , a 370 = 0 a 001 = 0 , a 011 = 0 , a 021 = 0 , a 031 = 0 , a 041 = 0 , a 051 = 0 , a 061 = 0 , a 071 = 1 a 101 = 0 , a 111 = 0 , a 121 = 0 , a 131 = 0 , a 141 = 1 , a 151 = 0 , a 161 = 0 , a 171 = 0 a 201 = 0 , a 211 = 0 , a 221 = 0 , a 231 = 0 , a 241 = 0 , a 251 = 1 , a 261 = 0 , a 271 = 0 a 301 = 0 , a 311 = 0 , a 321 = 0 , a 331 = 0 , a 341 = 0 , a 351 = 0 , a 361 = 1 , a 371 = 0 P = P o s i t i o n c = C o l o r t = T i m e
In case we assume the time register |T> as being the third dimension in our pixel cube representation without distinction between time and space (such data are available in various cases, such as computed tomography), and furthermore, k equals n, then Equation (18) becomes
Q = C > m P > 3 n = i = 0 2 3 n 1 j = 0 2 m 1 a i j j i
In Equation (19), the coefficients aij sum up to 1:
j = 0 2 m 1 a i j 2 = 1   i   w i t h   0 i < 2 3 n
and are used to express the color of a pixel with position i by means of a superposition of all possible colors. For a given pixel i, the coefficients aij take the value of 1 if the color of the pixel is j and 0 otherwise:
a 00 = 1 ,   a 01 = 0 ,   a 02 = 0 ,   a 03 = 0 ,   a 04 = 0 ,   a 05 = 0 ,   a 06 = 0 ,   a 07 = 0 a 10 = 0 ,   a 11 = 0 ,   a 12 = 1 ,   a 13 = 0 ,   a 14 = 0 ,   a 15 = 0 ,   a 16 = 0 ,   a 17 = 0 a 20 = 0 ,   a 21 = 0 ,   a 22 = 1 ,   a 23 = 0 ,   a 24 = 1 ,   a 25 = 0 ,   a 26 = 0 ,   a 27 = 0 a 30 = 0 ,   a 31 = 0 ,   a 32 = 0 ,   a 33 = 0 ,   a 34 = 0 ,   a 35 = 0 ,   a 36 = 1 ,   a 37 = 0 a 40 = 0 ,   a 41 = 0 ,   a 42 = 0 ,   a 43 = 0 ,   a 44 = 0 ,   a 45 = 0 ,   a 46 = 0 ,   a 47 = 1 a 50 = 0 ,   a 51 = 0 ,   a 52 = 0 ,   a 53 = 0 ,   a 54 = 1 ,   a 55 = 0 ,   a 56 = 0 ,   a 57 = 0 a 60 = 0 ,   a 61 = 0 ,   a 62 = 0 ,   a 63 = 0 ,   a 64 = 0 ,   a 65 = 1 ,   a 66 = 0 ,   a 67 = 0 a 70 = 0 ,   a 71 = 0 ,   a 72 = 0 ,   a 73 = 0 ,   a 74 = 0 ,   a 75 = 0 ,   a 76 = 1 ,   a 77 = 0
This is illustrated in Figure 7 with a simple example of a 2 × 2 × 2 frame cube with eight colors (0–7).
The quantum register Q, expressed using Equation (18), was experimentally implemented by the circuit in Figure 8. It is in fact the quantum circuit that implements 3D velocity filtering.
As shown in Figure 8, at the output of the proposed quantum velocity filtering circuit, we find the input image cube. Additionally, exploiting the quantum interference phenomenon, we can use an additional qubit initially in state |0> to reinterpret the quantum image cube as a superposition of two image cubes. For example, for a high-pass or a low-pass 3D filter, the output image is the sum of the image cube containing high frequencies and the image cube containing the corresponding low frequencies. The additional qubit can be used to make the distinction between the two image cubes.
Next, we analyzed this process and described the state of the quantum velocity filtering circuit at each step of the computation, as marked in Figure 8. With respect to Equation (18), the register |P> having 2n qubits and holding all position information is represented in the following Equation (21), with two registers of n qubits each corresponding to x and y positions, respectively. The input state I 0 is represented by the input image cube and an additional qubit in state 0 :
I 0 = Q     0 = 1 2 n   t = 0 2 n 1 y = 0 2 n 1 x = 0 2 n 1 j = 0 2 m 1 a t y x j j t y x 0
where Q holds the quantum image cube using the representation described previously. Applying 3D QFT on the image cube produces state I 1 :
I 1 = ( I m Q F T 2 3 n ) Q I 0
= 1 2 n   t = 0 2 n 1 y = 0 2 n 1 x = 0 2 n 1 j = 0 2 m 1 a t y x j j Q F T 2 3 n ( t y x ) 0
= 1 2 n   t = 0 2 n 1 y = 0 2 n 1 x = 0 2 n 1 j = 0 2 m 1 a t y x j j ( Q F T 2 n t ) ( Q F T 2 n y ) ( Q F T 2 n x ) 0
= 1 2 n   t = 0 2 n 1 y = 0 2 n 1 x = 0 2 n 1 j = 0 2 m 1 a t y x j j   l = 0 2 n 1 e 2 π i t l 2 n   l k = 0 2 n 1 e 2 π i y k 2 n | k > p = 0 2 n 1 e 2 π i x p 2 n   p 0
= 1 2 n   t = 0 2 n 1 y = 0 2 n 1 x = 0 2 n 1 j = 0 2 m 1 l , k , p = 0 2 n 1 a t y x j e 2 π i t l 2 n e 2 π i y k 2 n e 2 π i x p 2 n   j l k p 0
where I and Im denote the identity operator on 1 and m qubits, respectively.
The next step performed by the quantum circuit is the equivalent of the classical filtering step. The state of the register holding the image cube does not in fact change to a state representing the filtered image cube, but rather, it undergoes an interference process with the additional qubit initially in state 0 . This is achieved using a quantum oracle built using the filter function H(l, k, p).
The quantum state I 1 is a superposition of two states, a state representing the 3D frequencies that remain in the image cube and a state representing the 3D frequencies removed. Applying the oracle operator UH to this superposition, one can use the additional qubit to make the distinction between the two states. The oracle UH acts only on the position qubits and leaves the color qubits unaffected. Different choices of the filter H(l, k, p) result in different selections of 3D velocity filters. So, the resulting I 2 can be the input to IQFT.
The last computational step in the quantum circuit in Figure 8 represents the IQFT that reverts from the frequency to the spatial representation of the image cube. The final state of the circuit contains the superposition of two quantum image cubes: the image cube containing the frequencies passed by the 3D filter and the image cube containing the frequencies suppressed by the 3D filter. The distinction between these two image cubes can be made using the additional qubit I 3 . In fact, it can be interpreted as [1]
I 3 > = Q u n u s e d   v e l o c i t i e s > 0 + Q u s e d   v e l o c i t i e s 1
For extracting necessary information from the quantum-transformed image, a further processing step must be performed [1].

4.3. QFT Performance Versus FFT Performance

The computational performance of QFT is discussed in this subsection with regard to its superiority when compared to the computational performance of FFT. The required number of quantum gates is calculated, and a simple demonstration of their simplicity is presented with regard to the first simple necessary quantum gates. Note that the matrix in Equation (5) also implements classical FFT and performs the multiplication of the QFT matrix by the N × 1 column vector that contains the classical dataset. This multiplication would require N2 operations. Therefore, we would expect classical discreet Fourier transform to require O(N2) = O(22n) operations, which is exponential in n. The classical FFT algorithm can compute discreet Fourier transform in O(N log N) or O(n2n) operations, which is faster but still exponential in n.
However, QFT uses operation gates for its implementation. According to Figure 1, the number of operation gates used can be evaluated as follows:
1st row: 1 H gate + (n − 1)R gates = n gates
2nd row: 1 H gate + (n − 2)R gates = n − 1 gates
.
.
.
(n − 1)th row: 1 H gate + 1 R gate = 2 gates
n-th row: 1 H gate = 1 gate
Adding the gate count from each row gives n + (n − 1) + (n − 2) +··· + 1, or O(n2), gates, which is polynomial in n. Therefore, QFT is exponentially faster than discreet Fourier transform or FFT.
Furthermore, classical FFT (corresponding to 2 qubits, N = 4) in matrix form is
y = U x
where U is
U = 1 2 1 1 1 1 1 i i 2 i 3 1 i 2 1 i 2 1 i 3 i 2 i
and we replace e x p 2 π i / 4 = i . Equation (25) can be written as the product of two sparse matrices U = U 1 U 2 , where
U 1 = 1 2 1 0 1 0 0 1 0 1 1 0 i 2 0 0 1 0 i 2
and
U 2 = 1 2 1 1 0 0 0 0 1 i 1 i 2 0 0 0 0 1 i 3
QFT is generated by matrix U and can be written as the product of four sparse matrices (the swap gate, the Hadamard gates (2 gates), and the controlled phase gate) as follows:
Swap gate
S = 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1
Hadamard gate for the lower qubit
H 0 = 1 2 1 1 0 0 1 1 0 1 0 0 1 1 0 0 1 1
Hadamard gate for the upper qubit
H 1 = 1 2 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1
Controlled phase gate
R 1 = 1 2 1 0 0 0 0 1 0 0 1 0 1 0 0 1 0 i
As shown, the sparse matrices of QFT are simpler than the classical matrices of FFT without dynamics. So, the calculations in QFT are simpler and faster. Similarly, in classical FFT (3 qubits, n = 8), we have three sparse matrices, and in QFT, we have seven simpler sparse matrices, so the calculations are also faster.
Accordingly, for the N-qubit registers in QFT, a significant reduction is achieved in the required operations since all matrices involved in its evaluation are sparse. In the implementation of the example of Section 5.2, the execution time of conventional FFT was 200.63 s, while QFT implementation was carried out in 16.2 s.

5. Experimental Results

5.1. Moving Objects

In this subsection, the movement of some simple objects in a 3D scene is presented and their 3D spectrum is evaluated using the 3D QFT described by Equation (22). The data cube is considered to consist of 256 × 256 pixels and a total of 256 frames.
In Figure 9a, a small squared object in 3D space is shown. This thin (in the time axis—5 frames are occupied) object gives a horizontal spectrum with harmonics in a broad region as it is shown from various aspects of the spectrum (Figure 9b–d). Such an object, which would appear suddenly in the image cube for a small number of frames and then disappear, does not in fact exist. This means that the blue still object in Figure 9a is just a simulation to demonstrate its simple spectral content, and it exists only for five frames. Each direction in the spectral cube corresponds (inverse dimensions) to one of the three dimensions of the data cube, with a large extent of the one in Figure 9c, which is toward the vertical axis of the data cube (time). The three objects in Figure 9b–d in fact present the spectral content of the data cube in Figure 9a from different aspects.
The object shown in Figure 10 cannot also exist in practice, since while unmovable, it appears in some of the frames and then disappears. However, its spectrum given in red becomes thinner compared to the previous one in Figure 9 and contains a smaller amount of spectral energy out of the horizontal spectral plane 129. In practice, a still object in space should exist from 0 to 255 in the vertical axis. In this case, the spectrum is flat-lying only in the horizontal spectral plane 129 and corresponds only to frequencies irrelevant to the movement. So, the absence of movement corresponds to the spectral energy distributed in the horizontal plane 129 of 3D FFT.
In Figure 11, a moving object appears in the data cube in blue. The corresponding spectrum, in red, is flat and lies in a linear plane being vertical to the blue trajectory line. In this spectrum, some of the DC components exist in the horizontal spectral plane 129. This is a problem when we try to get rid of the (still) background. In Figure 12, a similar case is examined, where the object is moving in a different direction and its spectrum (red) is again oriented perpendicular to the blue trajectory.
Finally, in Figure 13, both moving objects exist in the data cube, and their (red) spectrum consists of the combination of the spectra in Figure 11 and Figure 12. Evidently, when one of the two objects must be rejected (filtered), the common frequency components need special care.
According to the described capabilities of the network in Figure 8, we need to evaluate the 3D spectrum of a specific trajectory and then devise the circuit U H l , k , p so that only specific frequencies are selected according to the 3D filter bank with various versions of U H l , k , p that have been built. This is in fact the procedure described in Section 3.
The selection of the filter U H l , k , p is initially made for a specific filtering transfer function according to the trajectory that is necessary to be isolated. The block diagram in Figure 8 contains a unique filtering capability and, of course, its complement. To isolate a different trajectory, another block diagram should be activated.

5.2. QFT Velocity Filtering Example

A bank of filters U H l , k , p was devised in an analogous manner to that in [28]. This filter bank was used to isolate cars moving with a specific velocity on a bridge. In Figure 14, two frames of a video from the bridge are shown, the 360th and the 380th. The white car moving from left to right at the bottom of the scene was isolated. All the frames were converted from color to grayscale using the MATLAB rgb2gray utility. Simultaneously, the length of the scenes was restricted to 512 pixels, and 512 frames were used so that a data cube of 512 × 512 × 512 was processed. Frames 360 and 380 in grayscale and restricted in length to 512 pixels are shown in Figure 15. After the appropriate selection of the filter U H l , k , p , inverse 3D QFT was applied, and the obtained result is shown in Figure 16. The obtained 360th and 380th frames contained only the white car that was moving at the bottom of the scene from left to right. This was possible since the spectrum of the trajectory of this car was recorded in one of the filters in the filter bank and was appropriately loaded in the block U H l , k , p .
In Figure 17, the selection of the filter U H l , k , p used in this experiment is demonstrated, providing three frames containing the specific car isolated from Figure 16 (Figure 17a–c), along with a sketch in the 3D data cube of the trajectory of this car (Figure 17d) and its corresponding spectral content U H l , k , p (Figure 17e).
As stated in the Introduction section, the isolation of the trajectory of a moving object within a specific range of speeds provides the capability of exactly evaluating the spectral content of the specific trajectory. The quantum oracle used incorporates this spectral content in a special way. Specifically, the |l>, |k>, and |p> registers in Figure 8 contain the whole spectrum of the image cube, but only the spectral content of the specific trajectory is left to pass through UH (filtering). Accordingly, the quantum oracle UH reorganizes the contents of the |l>, |k>, and |p> registers so that only the spectrum of the trajectory of the specific moving object remains in the data cube. The output of UH is shown in Figure 17e. Furthermore, based on the quantum interference phenomenon, we can use an additional qubit initially in state |0> to reinterpret the quantum image cube as a superposition of two image cubes, namely the spectral content of the trajectory (Figure 17e) and its complement.
Experimentally, we ran quantum simulations on a conventional computer running MATLAB. All procedures were based on the approach the authors in [36] specified. Comparisons with conventional approaches proved that the execution time for QFT is smaller in the order of 100 when a quantum circuit is used. This significant reduction is achieved since all matrices involved in its evaluation are sparse. In the implementation of the simulation experiment, the execution time of conventional FFT was 200.63 s, while QFT implementation was carried out in 16.2 s.

6. Conclusions

The quantum version of 3D FFT was presented analytically in this work, emphasizing the detailed explanation of its application to a specific example of a data cube coming from an ordinary video. The form of the development of 3D QFT has an important tutorial character. Simultaneously, it constitutes an important technical utility for isolating objects that are moving at speeds within certain limits. This utility can be used for numerous applications.
A filter bank was built having a series of quantum filter functions U H l , k , p that differ in their filtering capabilities with regard to the velocity of the object as well as its direction. The filter function is selected based on the properties of the object that is to be isolated.
The performance of the quantum circuit in Figure 8 is effective since the object with the specific velocity (white car at the bottom of the scene moving from left to right in Figure 14, Figure 15 and Figure 16) is totally isolated as the spectral signature of its trajectory (Figure 17e) is embodied as the operational content of the quantum oracle UH. Simultaneously, other cars with the same velocity are also isolated and brought to the foreground in the final scene.
Specific quantum velocity filtering techniques were not found in the literature for comparisons to be carried out. However, our approach was based on [28] only with regard to the organization of the filter bank. Its superiority in performing fast calculations for isolating objects with a specific velocity is clear.

Author Contributions

Conceptualization, G.K. and V.A.; realization, G.K. and V.A.; presentation, G.K. and V.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Caraiman, S.; Manta, V.I. Quantum Image Filtering in the Frequency Domain. Adv. Electr. Comput. Eng. 2013, 13, 77–85. [Google Scholar] [CrossRef]
  2. Lomont, C. Quantum Convolution and Quantum Correlation Algorithms Are Physically Impossible. arXiv 2003, arXiv:quant-ph/0309070. [Google Scholar]
  3. Divincenzo, D.P. Quantum Gates and Circuits. arXiv 1997, arXiv:quant-ph/97050091v1. [Google Scholar] [CrossRef]
  4. Sakk, E. Quantum Fourier Operators and their Application. In Real Perspective of Fourier Transforms and Current Developments in Superconductivity; IntechOpen: London, UK, 2021; pp. 1–15. [Google Scholar]
  5. Shor, P.W. Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer. SIAM J. Comput. 1997, 26, 1484–1509. [Google Scholar] [CrossRef]
  6. Josza, R. Quantum Algorithms and the Fourier Transform. Proc. R. Soc. Lond. A 1998, 454, 323–337. [Google Scholar]
  7. Nielsen, M.A.; Chuang, I.L. Quantum Computation and Quantum Information; Cambridge University Press: London, UK, 2011. [Google Scholar]
  8. Barenco, A.; Ekert, A.; Suominen, K.A.; Torma, P. Approximate quantum Fourier transform and decoherence. Phys. Rev. A 1996, 54, 139. [Google Scholar] [CrossRef]
  9. Fowler, A.; Hollenberg, L.C.L. Scalability of Shor’s algorithm with a limited set of rotation gate. Phys. Rev. A 2004, 70, 032329. [Google Scholar] [CrossRef]
  10. Pavlidis, A.; Gizopoulos, D. Fast Quantum Modular Exponentiation Architecture for Shor’s Factorization Algorithm. Quantum Inf. Comput. 2014, 14, 649–682. [Google Scholar] [CrossRef]
  11. Prokopenya, A.N. Approximate Quantum Fourier Transform and Quantum Algorithm for Phase Estimation. In Proceedings of the International Workshop on Computer Algebra in Scientific Computing, Aachen, Germany, 14–18 September 2015; pp. 391–405. [Google Scholar]
  12. Ruiz-Perez, L.; Garcia-Escartin, J.C. Quantum arithmetic with the quantum Fourier transform. Quantum Inf. Process. 2017, 16, 1–14. [Google Scholar] [CrossRef]
  13. Nam, Y.; Su, Y.; Maslov, D. Approximate quantum Fourier transform with O(n log(n)) T gates. NPJ Quantum Inf. 2020, 6, 26. [Google Scholar] [CrossRef]
  14. Zhou, N.R.; Zhang, T.F.; Xie, X.W.; Wu, J.Y. Hybrid quantum–classical generative adversarial networks for image generation via learning discrete distribution. Signal Process. Image Commun. 2023, 110, 116891. [Google Scholar] [CrossRef]
  15. Wu, C.; Huang, F.; Dai, J.; Zhou, N. Quantum SUSAN edge detection based on double chains quantum genetic algorithm. Phys. A Stat. Mech. Its Appl. 2022, 605, 128017. [Google Scholar] [CrossRef]
  16. Wang, Z.; Xu, M.; Zhang, Y. Review of Quantum Image Processing. Arch. Comput. Methods Eng. 2022, 29, 737–761. [Google Scholar] [CrossRef]
  17. Asaka, R.; Sakai, K.; Yahagi, R. Quantum circuit for the fast Fourier transform. Quantum Inf. Process. 2020, 19, 277–296. [Google Scholar] [CrossRef]
  18. Weinstein, Y.S.; Pravia, M.A.; Fortunato, E.M.; Lloyd, S.; Cory, D.G. Implementation of the Quantum Fourier Transform. Phys. Rev. Lett. 2001, 86, 1889. [Google Scholar] [CrossRef]
  19. Li, Y.; Hao, D.; Xu, Y.; Lai, K. A Fast Quantum Image Component Labeling Algorithm. Mathematics 2022, 10, 2718. [Google Scholar] [CrossRef]
  20. Song, X.; Chen, G.; Abd El-Latif, A.A. Quantum Color Image Encryption Scheme Based on Geometric Transformation and Intensity Channel Diffusion. Mathematics 2022, 10, 3038. [Google Scholar] [CrossRef]
  21. Yuan, S.; Mao, X.; Zhou, J.; Wang, X. Quantum Image Filtering in the Spatial Domain. Int. J. Theor. Phys. 2017, 56, 2495–2511. [Google Scholar] [CrossRef]
  22. Jiang, S.; Zhou, R.G.; Hu, W.; Li, Y. Improved Quantum Image Median Filtering in the Spatial Domain. Int. J. Theor. Phys. 2019, 58, 2115–2133. [Google Scholar] [CrossRef]
  23. Li, P.; Xiao, H. An Improved Filtering Method for Quantum Color Image in Frequency Domain. Int. J. Theor. Phys. 2018, 57, 258–278. [Google Scholar] [CrossRef]
  24. Canning, A. Scalable Parallel 3d FFTs for Electronic Structure Codes. In VECPAR 2008, LNCS 5336; Palma, J.M.L.M., Amestoy, P.R., Daydé, M., Mattoso, M., Lopes, J.C., Eds.; Springer: Berlin/Heidelberg, Germany, 2008; pp. 280–286. [Google Scholar]
  25. Kohn, W.; Sham, L.J. Self-Consistent Equations Including Exchange, and Correlation Effects. Phys. Rev. 1965, 140, A1133. [Google Scholar] [CrossRef]
  26. Zhao, G.; Chen, B.; Chen, L.; Liu, J.; Ren, Z. High-accuracy 3D Fourier forward modeling of gravity field based on the Gauss-FFT technique. J. Appl. Geophys. 2018, 150, 294–303. [Google Scholar] [CrossRef]
  27. Ritchie, B.; Weatherford, C.A. Use of a Fast Fourier Transform (FFT) 3D Time-Dependent Schrodinger Equation Solver in Molecular Electronic Structure. Quantum Chem. 1998, 70, 627–635. [Google Scholar] [CrossRef]
  28. Koukiou, G.; Anastassopoulos, V. Velocity Filter Banks using 3-D FFT. Proc. World Acad. Sci. Eng. Technol. 2013, 74, 409–412. [Google Scholar] [CrossRef]
  29. Koukiou, G.; Anastassopoulos, V. 3-D FFT moving objects Signatures for Velocity Filtering. ACEEE Int. J. Signal Image Process. 2014, 5, 71–75. Available online: https://publications.waset.org/7744/pdf (accessed on 17 January 2023).
  30. Kennedy, H.L. Efficient Velocity Filter Implementation for Dim Target Detection. IEEE Trans. Aerosp. Electr. Syst. 2011, 47, 2991–2999. [Google Scholar] [CrossRef]
  31. Kennedy, H.L. An Efficient Frequency-Domain Velocity Filter Implementation for Dim Target Detection. In Proceedings of the International Conference on Digital Image Computing: Techniques and Applications (DICTA), Sydney, NSW, Australia, 1–3 December 2010. [Google Scholar]
  32. Searle, J.S. Velocity Filtering of Image Sequences via Heuristic Search. In Proceedings of the 8th International Symposium on Signal Processing and its Applications, Sydney, Australia, 28–31 August 2005. [Google Scholar]
  33. Schauland, S.; Velten, J.; Kummert, A. 3D Velocity Filters for Improved Object Detection in Automotive Applications. In Proceedings of the Intelligent Transportation Systems Conference (ITSC), Bellevue, WA, USA, 30 September–3 October 2007. [Google Scholar]
  34. Schauland, S.; Velten, J.; Kummert, A. Detection of Moving Objects in Image Sequences using 3D Velocity Filters. Int. J. Appl. Math. Comput. Sci 2008, 18, 21–31. [Google Scholar] [CrossRef]
  35. Kojima, A.; Sakurai, N.; Kishigami, J.I. Motion Detection using 3D-FFT Spectrum. In Proceedings of the IEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP), Minneapolis, MN, USA, 27–30 April 1993. [Google Scholar]
  36. Musk, D.R. A Comparison of Quantum and Traditional Fourier Transform Computations. Comput. Sci. Eng. 2020, 22, 103–110. [Google Scholar] [CrossRef]
  37. Coppersmith, D. An Approximate Fourier Transform Useful in Quantum Factoring; IBM Research Report RC 19642 (07/12/94); IBM: Yorktown Heights, NY, USA, 1994. [Google Scholar] [CrossRef]
  38. Quantum Fourier Transform. Available online: https://en.wikipedia.org/wiki/Quantum_Fourier_transform (accessed on 1 July 2023).
  39. Preskill, J. Quantum Information and Computation. Lect. Notes Phys. 229 CIT 1998, 1–321. Available online: https://www.lorentz.leidenuniv.nl/quantumcomputers/literature/preskill_1_to_6.pdf (accessed on 17 January 2023).
Figure 1. The circuit implementation of n-qubit QFT using the Hadamard gate H and the phase gate R m .
Figure 1. The circuit implementation of n-qubit QFT using the Hadamard gate H and the phase gate R m .
Photonics 10 00483 g001
Figure 2. The 256 frames of 256 × 256 pixels each (data cube).
Figure 2. The 256 frames of 256 × 256 pixels each (data cube).
Photonics 10 00483 g002
Figure 3. An object of size 10 × 10 pixels that is moving with a radial velocity of 1/3 pixels per frame. The object is moving in the direction of 340 degrees with respect to the horizontal left-to-right direction. (a) Frame 1, (b) frame 64, (c) frame 128, and (d) frame 256.
Figure 3. An object of size 10 × 10 pixels that is moving with a radial velocity of 1/3 pixels per frame. The object is moving in the direction of 340 degrees with respect to the horizontal left-to-right direction. (a) Frame 1, (b) frame 64, (c) frame 128, and (d) frame 256.
Photonics 10 00483 g003
Figure 4. We chose 24 different directions in the experimental procedure, with the first one at 0 degrees (horizontal direction from left to right) and counterclockwise every 15 degrees.
Figure 4. We chose 24 different directions in the experimental procedure, with the first one at 0 degrees (horizontal direction from left to right) and counterclockwise every 15 degrees.
Photonics 10 00483 g004
Figure 5. A 3D image cube of 4 × 4 × 4 pixels. Since 3D FFT is a separable procedure, it can be performed in 3 phases (red, green, blue). In each phase, 42 = 16 1D FFTs are performed in directions (a) n3 (green), (b) n2 (blue), and (c) n1 (red). In each phase, the result from the previous phase is used as input. The obtained result of the 3D FFT procedure is not related to the order in which the 3 above phases are applied.
Figure 5. A 3D image cube of 4 × 4 × 4 pixels. Since 3D FFT is a separable procedure, it can be performed in 3 phases (red, green, blue). In each phase, 42 = 16 1D FFTs are performed in directions (a) n3 (green), (b) n2 (blue), and (c) n1 (red). In each phase, the result from the previous phase is used as input. The obtained result of the 3D FFT procedure is not related to the order in which the 3 above phases are applied.
Photonics 10 00483 g005
Figure 6. Example of a 2 × 2 × 2 quantum cube sequence of frames with eight different colors. Three qubits are used to represent color information and the 3-pixel position information (in space and time).
Figure 6. Example of a 2 × 2 × 2 quantum cube sequence of frames with eight different colors. Three qubits are used to represent color information and the 3-pixel position information (in space and time).
Photonics 10 00483 g006
Figure 7. This is an example of a 2 × 2 × 2 quantum cube with eight different colors. Three qubits are used to represent color information and 3-pixel position information. Such data are available in various cases, such as in computed tomography.
Figure 7. This is an example of a 2 × 2 × 2 quantum cube with eight different colors. Three qubits are used to represent color information and 3-pixel position information. Such data are available in various cases, such as in computed tomography.
Photonics 10 00483 g007
Figure 8. Implementation of the quantum circuit for 3D velocity filtering.
Figure 8. Implementation of the quantum circuit for 3D velocity filtering.
Photonics 10 00483 g008
Figure 9. (a) A squared still object in the time domain (vertical axis). The object is present in the scene for just 5 frames. This kind of object seldom exists. (bd) The object’s 3D spectrum from various aspects. (c) The spectral direction (corresponding to ωt), which presents a large extent and corresponds to a small extent of the original data cube toward the vertical axis (t). (b,d) The extent of the spectrum toward the directions of the spatial frequencies from a different aspect (height) in the third axis ωt.
Figure 9. (a) A squared still object in the time domain (vertical axis). The object is present in the scene for just 5 frames. This kind of object seldom exists. (bd) The object’s 3D spectrum from various aspects. (c) The spectral direction (corresponding to ωt), which presents a large extent and corresponds to a small extent of the original data cube toward the vertical axis (t). (b,d) The extent of the spectrum toward the directions of the spatial frequencies from a different aspect (height) in the third axis ωt.
Photonics 10 00483 g009
Figure 10. (a) A squared still object in the time domain (vertical axis). The object is present in the scene for 160 frames. (b) Its 3D spectrum is distributed mainly in plane 129 of the spectral cube.
Figure 10. (a) A squared still object in the time domain (vertical axis). The object is present in the scene for 160 frames. (b) Its 3D spectrum is distributed mainly in plane 129 of the spectral cube.
Photonics 10 00483 g010
Figure 11. The evaluation of the spectra of a moving object. (a) The trajectory of the moving object in the data cube (blue) and (b) the 3D spectrum of this trajectory is flat (red). The direction of the trajectory can be considered as being perpendicular to the plane of its spectrum.
Figure 11. The evaluation of the spectra of a moving object. (a) The trajectory of the moving object in the data cube (blue) and (b) the 3D spectrum of this trajectory is flat (red). The direction of the trajectory can be considered as being perpendicular to the plane of its spectrum.
Photonics 10 00483 g011
Figure 12. A different case of the 3D spectrum of a moving object. (a) A moving object (blue) in a different direction than that in Figure 11. (b) Its flat spectrum in red. Again, the trajectory of the object is perpendicular to the plane of its spectrum.
Figure 12. A different case of the 3D spectrum of a moving object. (a) A moving object (blue) in a different direction than that in Figure 11. (b) Its flat spectrum in red. Again, the trajectory of the object is perpendicular to the plane of its spectrum.
Photonics 10 00483 g012
Figure 13. The case of two moving objects in the data cube and their 3D composite spectrum. (a) The two moving objects (blue) with different trajectories. (b) Their spectra (red) with planes being perpendicular to the corresponding trajectories.
Figure 13. The case of two moving objects in the data cube and their 3D composite spectrum. (a) The two moving objects (blue) with different trajectories. (b) Their spectra (red) with planes being perpendicular to the corresponding trajectories.
Photonics 10 00483 g013
Figure 14. The video of the bridge. Scenes 360 (upper) and 380 (lower). The velocity of the white car at the bottom of the two scenes was recorded, and this car was isolated using the 3D QFT algorithm.
Figure 14. The video of the bridge. Scenes 360 (upper) and 380 (lower). The velocity of the white car at the bottom of the two scenes was recorded, and this car was isolated using the 3D QFT algorithm.
Photonics 10 00483 g014
Figure 15. The video of the bridge was converted to grayscale, and the total data cube was 512 × 512 pixels × 512 frames. Frames 360 (left) and 380 (right) are shown.
Figure 15. The video of the bridge was converted to grayscale, and the total data cube was 512 × 512 pixels × 512 frames. Frames 360 (left) and 380 (right) are shown.
Photonics 10 00483 g015
Figure 16. After 3D QFT processing and application of inverse 3D QFT, frames 360 (left) and 380 (right) contained only the car with the specific velocity (velocity filtering).
Figure 16. After 3D QFT processing and application of inverse 3D QFT, frames 360 (left) and 380 (right) contained only the car with the specific velocity (velocity filtering).
Photonics 10 00483 g016
Figure 17. The selection of the filter U H l , k , p capable of isolating the specific car from Figure 16. Three different frames with the isolated car, the 100th (a), the 250th (b), and the 400th (c), along with a sketch in the 3D data cube of the trajectory of this car (d), and its corresponding spectral content U H l , k , p (e).
Figure 17. The selection of the filter U H l , k , p capable of isolating the specific car from Figure 16. Three different frames with the isolated car, the 100th (a), the 250th (b), and the 400th (c), along with a sketch in the 3D data cube of the trajectory of this car (d), and its corresponding spectral content U H l , k , p (e).
Photonics 10 00483 g017
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Koukiou, G.; Anastassopoulos, V. Velocity Filtering Using Quantum 3D FFT. Photonics 2023, 10, 483. https://doi.org/10.3390/photonics10050483

AMA Style

Koukiou G, Anastassopoulos V. Velocity Filtering Using Quantum 3D FFT. Photonics. 2023; 10(5):483. https://doi.org/10.3390/photonics10050483

Chicago/Turabian Style

Koukiou, Georgia, and Vassilis Anastassopoulos. 2023. "Velocity Filtering Using Quantum 3D FFT" Photonics 10, no. 5: 483. https://doi.org/10.3390/photonics10050483

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop