Next Article in Journal
Outage Performance Analysis of NOMA in Wireless Powered Cognitive Radio Networks with AF and DF Relaying Techniques
Previous Article in Journal
Expand-and-Randomize: An Algebraic Approach to Secure Computation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Quantum Representations and Scaling Up Algorithms of Adaptive Sampled-Data in Log-Polar Coordinates

School of Mathematics and Statistics, Henan University, Kaifeng 475001, China
*
Author to whom correspondence should be addressed.
Entropy 2021, 23(11), 1462; https://doi.org/10.3390/e23111462
Submission received: 16 September 2021 / Revised: 20 October 2021 / Accepted: 27 October 2021 / Published: 4 November 2021

Abstract

:
In log-polar coordinates, the conventional data sampling method is to sample uniformly in the log-polar radius and polar angle directions, which makes the sample at the fovea of the data denser than that of the peripheral. The central oversampling phenomenon of the conventional sampling method gives no more efficient information and results in computational waste. Fortunately, the adaptive sampling method is a powerful tool to solve this problem in practice, so the paper introduces it to quantum data processing. In the paper, the quantum representation model of adaptive sampled data is proposed first, in which the upper limit of the sampling number of the polar angles is related to the log-polar radius. Owing to this characteristic, its preparation process has become relatively complicated. Then, in order to demonstrate the practicality of the model given in the paper, the scaling up algorithm with an integer scaling ratio based on biarcuate interpolation and its circuit implementation of quantum adaptive sampled data is given. However, due to the special properties of the adaptive sampling method in log-polar coordinates, the interpolation process of adaptive sampled data becomes quite complicated as well. At the end of this paper, the feasibility of the algorithm is verified by a numerical example.

1. Introduction

Quantum computation [1], as the interdisciplinary subject of many disciplines, such as computer science, mathematics, physics and engineering technology, has generated much interest in the world. Quantum computation can solve many problems that classical computers cannot solve or are inefficient at, and has the ability for data processing beyond classical computers by utilizing the coherent superposition characteristics of quantum states. Quantum algorithms [2,3] use quantum interference, quantum entanglement and other unique quantum mechanical principles to calculate, which can achieve exponential acceleration or quadratic acceleration for some classical algorithms.
Quantum data processing is a pioneer in the implementation of information processing on quantum computers and has currently become a hot research field in quantum computation. Research results include: quantum data representation [4,5,6,7,8,9,10], geometric transformation [11,12], color transformation [13], feature extraction [14], data scaling [15,16,17], data watermarking [18,19], data registration [20] and so on. These research achievements have greatly promoted the development of quantum data processing.
Although quantum data processing has made great progress, there are still many problems. Most of the existing quantum data representation models are carried out in Cartesian coordinates; only few studies on quantum data representation models are discussed in log-polar coordinates. Compared with Cartesian coordinates, log-polar coordinates have the advantages of rotation and scale invariance. Because any scale and rotation in Cartesian coordinates can be represented as shifting in the log-polar radius and the polar angular directions in log-polar coordinates, respectively, it is easier to rotate data in log-polar coordinates than that in Cartesian coordinates. The existing quantum data representation model in log-polar coordinates is based on sample uniformly in both the log-polar radius and polar angle directions. The main problem is the high computational cost in data processing, which comes from central oversampling. In other words, the sample density in the data center is higher than that in the periphery, and no more useful information is gained from oversampling. An effective way to solve this problem is to employ the adaptive sampling method [21], and the detailed information is given in the next section.
According to the characteristics of log-polar coordinates, the adaptive sampling method can effectively solve the problem of oversampling in the center because the upper limit of the sampling number of the polar angles is related to the log-polar radius. This greatly avoids the computational waste caused by central oversampling. Hence, the new quantum data representation model based on the adaptive sampling method in log-polar coordinates is proposed in the paper. In quantum representations of adaptive sampled data in log-polar coordinates (QRASD), three entangled qubit sequences are applied to deposit the data information, the log-polar radius information and the polar angle information. In order to demonstrate the practicality of the representation model, the quantum data scaling up algorithm with integer scaling ratio based on biarcuate interpolation is given. The feasibility of the algorithm is verified by an example at the end of the paper.
The rest of this paper is arranged as follows. In Section 2, the conventional sampling method and adaptive sampling method in log-polar coordinates are introduced. The novel representation model and its preparation procedure are described in Section 3. In Section 4, the quantum data scaling up algorithm with integer scaling ratio using biarcuate interpolation based on the QRASD model is given. Finally, a conclusion is presented in Section 5.

2. Preliminaries

In this section, the conventional sampling method and adaptive sampling method in log-polar coordinates are introduced in detail first, and then the QUALPI model based on the conventional sampling method is also discussed.
The conventional mathematical expression for a mapping procedure in which log-polar coordinates are interchangeable with Cartesian coordinates is shown below:
ρ = log b a s e ( x x c ) 2 + ( y y c ) 2 ,
θ = tan 1 y y c x x c ,
where ( x c , y c ) represents the center datum of the transformation in Cartesian coordinates; ( x , y ) denotes the sampling datum in Cartesian coordinates; ( ρ , θ ) denotes the log-polar radius and the polar angular position in log-polar coordinates. For the sake of simplicity, the base is the natural logarithm. Figure 1 shows a conventional comparison between the two sampling methods. Figure 1a represents the conventional sampling method in log-polar coordinates, and Figure 1b represents the conventional sampling method in Cartesian coordinates.
Figure 1a indicates that the sample at the fovea of the data is denser than that of the peripheral using the conventional sampling method in log-polar coordinates, so the data processing focuses more on the fovea or central area while the peripheral area is given less consideration. Fortunately, the adaptive sampling method in log-polar coordinates [21] avoids this problem, which is introduced below.
Let n ρ and n θ be the numbers of samples in the log-polar radius and the polar angular directions, respectively; R i , i = 0 , 1 , , n ρ , be the radius size which is sampled equally to cover 360 in the angular direction for θ = 0 , 1 , , n θ . Furthermore, to prevent undersampling in the log-polar radius direction, R n ρ R n ρ 1 1 must be satisfied. It is easy to see that the following equation should be true:
R i = e i × log R m a x n ρ , R m a x = R n ρ ,
n ρ log R m a x log R m a x log ( R m a x 1 ) .
In the polar angular direction, the maximum sampling circumference, R m a x , has approximately 2 π R m a x data. Hence, the number of samples in the polar angular direction is equal or greater than that amount, which is necessary to prevent data being missed in the sampling procedure, that is:
n θ 2 π R m a x .
To make the computation simpler, n ρ and n θ are selected as a multiple power of two. Then, Equations (4) and (5) can be expressed as:
n ρ = 2 1 log 2 × log log R m a x log R m a x log ( R m a x 1 ) , n θ = 8 R m a x ,
where A is the nearset integer equal to or greater than A. It is found that the most suitable sampling method is to set the number of polar angles to eight times the number of log-polar radii. Therefore, the adaptive sampling method uses an eight-fold sampling method for each circumference. The adaptive sampling method is shown in Figure 2a. Figure 2b describes the resulting sample distribution in the polar angular and log-polar radius directions, a series of sample points are arranged in the step-like manner, that is, as ρ increases, the length of the sample points (number of samples represented by θ ) increases. The total number of samples is less than what is needed for the conventional sampling method to have the same sampling resolution.
The QUALPI model [9] based on conventional sampling method stores and processes data in log-polar coordinates. It utilizes three entangled qubit sequences to store the gray scale information, the log-polar radius position and the polar angular position information for each pixel in a log-polar image. The model is shown below:
I = 1 2 m + n ρ = 0 2 m 1 θ = 0 2 n 1 | g ( ρ , θ ) | ρ | θ ,
g ( ρ , θ ) = C ρ θ 0 C ρ θ 1 C ρ θ q 1 , C Y X t { 0 , 1 } , g ( ρ , θ ) 0 , 2 q 1 .
The QUALPI model realizes the quantum representation of log-polar images for the first time, but the problem of central oversampling in log-polar coordinates still exists. Therefore, it is of great significance for the development of quantum data processing in the future to improve the existing quantum data representation models and find a better method to represent quantum data in log-polar coordinates.

3. Quantum Data Representations and Preparation Based on Adaptive Sampling Method

The premise of the application of data in log-polar coordinates is the existence of its representation and preparation. In this section, details of representations and preparation procedures are given in Section 3.1 and Section 3.2, respectively. The time complexity of the preparation procedure is also discussed in Section 3.3.

3.1. Quantum Data Representations Based on Adaptive Sampling Method

Motivated by the QUALPI model, a novel quantum representation model of adaptive sampled-data in log-polar coordinates (QRASD) to store and process data is proposed as follows:
D = 1 2 2 m + 3 ρ = 0 M 1 θ = 0 8 ρ + 7 | f ( ρ , θ ) | ρ | θ ,
m = log 2 M , M > 1 ; 1 , M = 1 ,
where ρ encodes the information of log-polar radius and θ encodes the information of the polar angle. For each fixed ρ , i.e., in the circumference with a log-polar radius ρ , the circumference is sampled equidistantly with sampling number of 8 ρ and sampling interval of 2 π / 8 ( ρ + 1 ) . It is worth noting that both ρ and θ are coded from 0, which have a certain impact on subsequent calculations.
In order to improve the flexibility and breadth of the model, three different data information representation methods are presented.
  • Representing the data information as in the FRQI model
When we replace | f ( ρ , θ ) in Equation (9) with the method given in the FRQI model [7], i.e., | f ( ρ , θ ) = cos α ρ θ | 0 + sin α ρ θ | 1 , then we have:
D = 1 2 2 m + 3 ρ = 0 M 1 θ = 0 8 ρ + 7 ( cos α ρ θ | 0 + sin α ρ θ | 1 ) | ρ | θ ,
α ρ θ 0 , π 2 , ρ = 0 , 1 , , M 1 , θ = 0 , 1 , , 8 ρ + 7 .
Equation (11) is referred to as the FRQI model based on the adaptive sampling method, shorthand for the AS-FRQI sub-model.
2.
Representing the data information as in the NEQR model
If | f ( ρ , θ ) is taken the form of the data information in the NEQR model [8], where | f ( ρ , θ ) = C ρ θ 0 C ρ θ 1 C ρ θ q 1 , C ρ θ t { 0 , 1 } , t = 0 , 1 , , q 1 , then Equation (9) can be rewritten as:
D = 1 2 2 m + 3 ρ = 0 M 1 θ = 0 8 ρ + 7 t = 0 q 1 | C ρ θ t | ρ | θ .
The new representation method is called the NEQR model based on an adaptive sampling method, or the AS-NEQR sub-model for short.
3.
Representing the data information as in the QR2-DD model
The IEEE (Institute of Electrical and Electronics Engineers) is an international organization that has designed specific binary formats for storing floating-point numbers. IEEE-754 is the most widely used standard for floating point arithmetic operations. Figure 3 shows the format of floating-point numbers in IEEE-754.
The QR2-DD model [10] uses the IEEE-754 standard to represent quantum data information, which lays a foundation for quantum data processing. Let | f ( ρ , θ ) = s ρ θ 0 s ρ θ 1 s ρ θ p s ρ θ p + 1 s ρ θ p + q 1 , s ρ θ t { 0 , 1 } , then Equation (9) goes to the following form:
D = 1 2 2 m + 3 ρ = 0 M 1 θ = 0 8 ρ + 7 t = 0 p + q 1 | s ρ θ t | ρ | θ ,
where S Y X s = s Y X 0 is the sign qubit, S Y X e = s Y X 1 s Y X 2 s Y X p encodes the exponent and S Y X f = s Y X p + 1 s Y X p + 2 s Y X p + q 1 encodes the mantissa. The QR2-DD model based on adaptive sampling method is abbreviated as the AS-QR2-DD sub-model.
Figure 4a takes a ρ × 8 ρ ( ρ = 0 , 1 ) quantum data | D as an example, that is, when ρ = 0 , there is θ = 0 , 1 , , 7 , and when ρ = 1 , there is θ = 0 , 1 , , 15 . Its quantum representation expression based on the AS-NEQR sub-model is given in Figure 4b. The data information of | D from big to small are 192, 128, 64, 32 and 0. The quantum representation expression omits the part where the data is 0.

3.2. Quantum Data Preparation Based on Adaptive Sampling Method

Since the preparation process for the three quantum data representation sub-models given above is similar, only one detailed preparation process is given in this subsection. Compared with the AS-FRQI sub-model and the AS-NEQR sub-model, floating-point numbers can represent decimal numbers, which is more suitable for data processing in actuality. Therefore, the AS-QR2-DD sub-model is taken as an example for quantum preparation.
Due to the inherent characteristics of the binary operation process of quantum computer, redundancy is an inevitable result in the process of binary computation in quantum computers. In Figure 5, the gray part contains data information, while the white part is redundant without data information.
The empty quantum state with ( p + q + 2 m + 3 ) qubits is constructed as follows:
| ψ 0 = | 0 ( p + q + 2 m + 3 ) .
The preparation process of adaptive sampled-data is shown in Figure 6. With the empty quantum state, the position information is first prepared in Figure 6a, and then the data information, which is the shaded part in Figure 6b, is prepared by using the comparator.
Step 1: In this step, the single-qubit identity gate I and the Hadamard gate H are utilized to transform | ψ 0 to the intermediate state | ψ 1 . The whole quantum operation U 1 in Step 1 is defined as follows:
U 1 = I ( p + q ) H m H ( m + 3 ) ,
which transforms the initial state | ψ 0 to the intermediate state | ψ 1 :
| ψ 1 = U 1 ( | ψ 0 ) = 1 2 2 m + 3 ρ = 0 2 m 1 θ = 0 2 m + 3 1 | 0 ( p + q ) | ρ | θ .
Step 2: Compared with the preparation process of the existing quantum data representation models, the upper limit of the sampling number of θ in the QRASD model is related to ρ , that is 0 θ ( 8 ρ + 7 ) , so a comparison between ( 8 ρ + 7 ) and θ is necessary. In order to achieve this goal, some quantum circuit modules are introduced first.
  • Plus one and minus one modules
This part is designed to perform plus one and minus one [17] operations. The quantum circuit of plus one and minus one modules are shown in Figure 7a,b, respectively.
2.
Multiply by eight module
This module implements the multiplication by eight, i.e., | X | 8 X , and the quantum circuit is shown in Figure 8. The essence of multiplying by eight is that the qubit shifts three places to the left. It can be seen that, the effect of the module is | 000 x n 1 x n 2 x 0 | x n 1 x n 2 x 0 000 .
3.
Comparator module
Comparator [22] plays an important role in quantum data processing. The function of this module is to compare | x and | y , where | x = | x n 1 x n 2 x 0 , | y = | y n 1 y n 2 y 0 , x t , y t { 0 , 1 } , t = 0 , 1 , , n 1 . The qubit | z is the output. If | z = | 1 , then x y ; if | z = | 0 , then x < y . The quantum circuit of the comparator module is shown in Figure 9.
These are all the modules required for the process of comparison. As shown in Figure 10, the specific operation of this step is as follows: The qubit representing ρ is executed first by the operation of adding one to obtain ( ρ + 1 ) . Then, ( ρ + 1 ) is multiplied by eight and subtracted by one to obtain ( 8 ρ + 7 ) . Finally, ( 8 ρ + 7 ) is compared with θ . When the output | z is equal to | 1 , the next step is executed.
Step 3: Since there are 8 ( ρ + 1 ) polar angles on each circumference of log-polar radius ρ , this step is divided into 8 ( 1 + 2 + + M ) = 4 M ( M + 1 ) sub-operations to set the data information at the corresponding position. The sub-operation U ρ θ is expressed as below:
U ρ θ = I ( p + q ) l = 0 2 m 1 k = 0 2 m + 3 1 ( l , k ) ( ρ , θ ) | l k l k | + Ω ρ θ | ρ θ ρ θ | ,
ρ = 0 , 1 , , M 1 , θ = 0 , 1 , , 8 ρ + 7 ,
where the value-setting operation Ω ρ θ can be shown as:
Ω ρ θ = t = 0 p + q 1 Ω ρ θ t , Ω ρ θ t : | 0 0 s ρ θ t .
It is obviously that Ω ρ θ only affect data at the specified position. The process for Ω ρ θ to obtain data is as follows:
Ω ρ θ | 0 ( p + q ) = t = 0 p + q 1 Ω ρ θ t | 0 = t = 0 p + q 1 0 s ρ θ t = t = 0 p + q 1 s ρ θ t = | f ( ρ , θ ) .
The following formula shows the result of the intermediate state | ψ 1 under the influence of U ρ θ .
U ρ θ ( | ψ 1 ) = 1 2 2 m + 3 l = 0 2 m 1 k = 0 2 m + 3 1 ( l , k ) ( ρ , θ ) | 0 ( p + q ) | l | k + Ω ρ θ | 0 ( p + q ) | ρ | θ = 1 2 2 m + 3 l = 0 2 m 1 k = 0 2 m + 3 1 ( l , k ) ( ρ , θ ) | 0 ( p + q ) | l | k + | f ( ρ , θ ) | ρ | θ .
To set the 4 M ( M + 1 ) log-polar data, the whole operation U 2 which transforms the intermediate state | ψ 1 to the final state | ψ 2 is defined below:
U 2 = ρ = 0 M 1 θ = 0 8 ρ + 7 U ρ θ ,
| ψ 2 = U 2 | ψ 1 = 1 2 2 m + 3 ρ = 0 M 1 θ = 0 8 ρ + 7 | f ( ρ , θ ) | ρ | θ .
Hitherto, the initialized state | 0 ( p + q + 2 m + 3 ) is transformed to the desired state.

3.3. Time Complexity Analysis of the Preparation Procedure

Time complexity refers to the time needed to complete an algorithm in the field of computer science and engineering, and is an important parameter to evaluate the merits of an algorithm. Therefore, it is necessary to discuss the time complexity of the preparation procedure. To calculate the time complexity, the number of operation units of the preparation procedure must be estimated, and each operation unit runs for the same amount of time.
Theorem 1.
In order to store ρ × 8 ρ ( ρ = 0 , 1 , , M 1 ) data with a data range from 0 to 2 p + q 1 , the whole quantum preparation of the AS-QR2-DD sub-model costs no more than O ( m 2 + ( p + q ) m M 2 ) .
Proof. 
Firstly, in Step 1, U 1 is consisted of ( 2 m + 3 ) Hadamard gates, and:
m = log 2 M , M > 1 ; 1 , M = 1 ,
where A is the nearset integers equal to or greater than A. Then it’s obvious that the time complexity of this step is O ( m ) .
Secondly, U 2 can be decomposed into four operations: plus one, multiply by eight, minus one and comparator operations.
The plus one module consists of one N O T gate, one C- N O T gate, one C 2 - N O T gate, …, and one C m 1 - N O T gate. While a Toffoli gate ( C 2 - N O T gate) can be decomposed into six C- N O T gates and some 1- b i t gates, such as two Hadamard gates H, one phase gate S, three π 8 gates T and four conjugate transpose of the π 8 gate T + [23]. Summed up, a Toffoli gate has a time complexity of 16. Figure 11 depicts the process of implementing the Toffoli gate with elementary quantum gates. When t = 3 and 4, one C t - N O T gate can be decomposed into ( 3 · 2 t 4 ) C- N O T gates and 2 · 2 t 1- b i t gates. When t = 5 , 6 , , m 1 , each controlled quantum gate C t - N O T can be simulated by 8 ( t 3 ) Toffoli gates [24]. Therefore, the time complexity of the plus one module is O ( m 2 ) .
Multiplied by the eight module contains m swap gates, which can be decomposed into three C- N O T gates. So the time complexity of multiplying by the eight module is O ( m ) .
Similar to the plus one module, the minus one module requires one N O T gate, one C- N O T gate, one C 2 - N O T gate, …, and one C m + 2 - N O T gate to complete. Then, the time complexity of the minus one module is also O ( m 2 ) .
The comparator operation consists of one C 2 ( m + 3 ) - N O T gate, one C 2 m + 5 - N O T gate, three C 2 - N O T gates, three C 4 - N O T gates, …and three C 2 ( m + 2 ) - N O T gates. The further decomposition has the time complexity of the comparator module O ( m 2 ) .
To sum up, the time complexity of Step 2 is O ( m 2 ) .
Last but not least, the operation U 2 in Step 3 can be divided into 4 M ( M + 1 ) sub-operations U ρ θ to set all the data at the corresponding position. Each U ρ θ is composed of ( p + q ) C 2 m + 3 - N O T gates. It is known that sub-operation U ρ θ costs no more than O ( ( p + q ) m ) . Hence, the time complexity of Step 3 will cost no more than O ( ( p + q ) m M 2 ) .
As the discussion above, the time complexity of the whole preparation procedure is about O ( m 2 + ( p + q ) m M 2 ) . □
The quantum circuit of preparation for the example data shown in Figure 4 is described in Figure 12.

4. Quantum Data Scaling Up Algorithm with Integer Scaling Ratio Based on Biarcuate Interpolation

Data scaling up as a kind of data geometric transformation has been widely studied and applied in the classical data processing; however, the quantum version of which, in log-polar coordinates does not exist. Here, by employing biarcuate interpolation, a quantum algorithm to scale up adaptive sampled-data in log-polar coordinates is given. To make it easier to understand, the AS-NEQR sub-model is taken as an example.

4.1. Quantum Circuit Modules for Arithmetic Operations

Designing a quantum scaling up circuit of biarcuate interpolation is a complex task. A series of quantum circuit modules to realize special functions are introduced first, including multiplying the C- N O T operation module, adder module [25], subtractor module [25], multiplier module [26] and divider module [27].

4.1.1. Multiply C- N O T Operation Module

The multiply C- N O T operation is to copy the determined quantum states. The quantum circuit of the multiply C- N O T operation is shown in Figure 13. It utilizes nC- N O T gates to copy the n-qubit information of | X = | x n 1 x n 2 x 0 into the n ancillary qubits | 0 n , where | x n 1 , | x n 2 , …, | x 1 and | x 0 are the control qubits and the n ancillary qubits | 0 n are the target qubits. The time complexity of the multiply C- N O T operation module is O ( n ) .

4.1.2. Adder Module

The adder module [25] is not only the core of the multiplier, but also one of the core modules of constructing the biarcuate interpolation method. The adder (A) adding a n-qubit unsigned integer | Y to a n-qubit unsigned integer | X is designed by one half adder (HA) and ( n 1 ) full adders (FA) as shown in Figure 14. Here, the input | X comes out as the sequence | s n s n 1 s 0 , which represents the sum of | X + Y , and the input | Y stays the same. Other unremarked qubits are the garbage outputs and the input qubit | 0 is the ancillary constant input. For convenience, the block diagram of A omits the ancillary inputs and the garbage outputs. The time complexity of the adder module is O ( n ) .

4.1.3. Subtractor Module

The function of the subtractor (S) is to implement the subtraction of binary unsigned integers | X and | Y [25]. The subtractor is designed by one half subtractor (HS) and ( n 1 ) full subtractors (FS). The input | X come out as the sequence | d n d n 1 d 0 , which represents the difference of | X Y , and the input | Y stays the same. If X Y , then | d n = | 0 , if X < Y , then | d n = | 1 . The quantum circuit of the subtractor module is shown in Figure 15. The time complexity of the subtractor module is O ( n ) .

4.1.4. Multiplier Module

The purpose of the multiplier module [26] is to take the product of two numbers, which can be done by addition. Let | X = | x m 1 x m 2 x 0 and | Y = | y n 1 y n 2 y 0 , then:
| X × Y = | 2 m 1 x m 1 + 2 m 2 x m 2 + + 2 0 x 0 × Y = | 2 m 1 x m 1 × Y + 2 m 2 x m 2 × Y + + 2 0 x 0 × Y = | x m 1 × ( 2 × 2 m 2 Y ) + x m 2 × ( 2 × 2 m 3 Y ) + + x 0 × ( 2 0 × Y ) .
First, the auxiliary qubit | 0 n is given as the initial value of the partial product. When | x 0 = | 1 , copy | Y to the partial product, add ‘0’ to the left of the partial product, and add ‘0’ to the right of | Y . Then, if | x t = | 1 , t = 1 , 2 , , m 1 , add the padded | Y to the partial product. If | x t = | 0 , the partial product remains unchanged. Since the adder is a carry addition, only after the proccess do we need to add ‘0’ to the right of | Y . The block diagram of multiplier (M) is shown in Figure 16, where it consists of multiple adders. The time complexity of the multiplier module is O ( m n ) .

4.1.5. Divider Module

Based on restoring the division algorithm, Khosropour et al. [27] proposed the quantum division circuit. In order to make full use of the operation modules given in this paper, appropriate modifications have been made in this subsection. In Figure 17, a pseudo code for this algorithm is given.
According to the algorithm, to get the quotient ( | Q ) and the remainder ( | R ), first of all, the lowest n-qubit of | A are equal to the dividend | X , and the highest n-qubit are equal to zero. Furthermore, register | B is initiated such that its highest n-qubit contains the divisor | Y and its lowest n-qubit are set to zero. Then, | A is multiplied by two and compared to | B . If the result is nonnegative, then the qubit | q t in the quotient is set to one and | A should be subtracted | B ; otherwise, | q t = | 0 . This process is repeated n times, each time one qubit of the quotient is determined. A concrete calculation example is given to clarify this procedure. Let | X = | 1001 and | Y = | 0010 , then the initial state is:
| A = | 00001001 , | B = | 00100000 .
The first iteration:
| A = | 2 A = | 00010010 , | A < | B , | q 3 = | 0 .
The second iteration:
| A = | 2 A = | 00100100 , | A | B .
| q 2 = | 1 , | A = | A B = | 00000100 .
The third iteration:
| A = | 2 A = | 00001000 , | A < | B , | q 1 = | 0 .
The forth iteration:
| A = | 2 A = | 00010000 , | A < | B , | q 0 = | 0 .
Therefore, it turns out that:
| R = | 0001 , | Q = | 0100 .
Obviously, the calculation process of the divider can be achieved through the comparators, subtractors and multiply by two operations. The corresponding quantum circuit is shown in Figure 18. In order to facilitate the subsequent operations, the upper output is marked as Y, the middle output is marked as R and the lower output is marked as Q in the quantum simple circuit of the divider. The time complexity of the divider module is O ( n 3 ) .

4.2. Quantum Biarcuate Interpolation Method in Log-Polar Coordinates

The principle of the biarcuate interpolation method in log-polar coordinates is similar to that of the bilinear interpolation method in Cartesian coordinates. The difference is that bilinear interpolation is based on line segments, but biarcuate interpolation is based on angular segments.

4.2.1. Arcuate Interpolation Method

The datum at position ( ρ , θ ) of the interpolated data can be reconstructed from the datum at positions ( ρ , θ 1 ) and ( ρ , θ 1 ) of the original data. As shown in Figure 19, the value of the desired datum f ( ρ , θ ) can be obtained by the following equation:
f ( ρ , θ ) f ( ρ , θ 1 ) θ θ 1 = f ( ρ , θ 1 ) f ( ρ , θ ) θ 1 θ ,
where f ( ρ , θ 1 ) and f ( ρ , θ 1 ) are two known data. That is to say,
f ( ρ , θ ) = ( 1 h ) f ( ρ , θ 1 ) + h f ( ρ , θ 1 ) , h = θ θ 1 θ 1 θ 1 .

4.2.2. Biarcuate Interpolation Method

The biarcuate interpolation method is more complicated than the arcuate interpolation method. The value f ( ρ , θ ) at position ( ρ , θ ) of the interpolated data can be reconstructed from the value at positions ( ρ 1 , θ 1 ) , ( ρ 1 , θ 1 ) , ( ρ 2 , θ 2 ) and ( ρ 2 , θ 2 ) of the original data. The corresponding relationship is shown in Figure 20.
To get f ( ρ , θ ) , auxiliary points ( ρ 1 , θ ) and ( ρ 2 , θ ) are added to facilitate the calculation. The datum at position ( ρ 1 , θ ) can be calculated as follows:
f ( ρ 1 , θ ) f ( ρ 1 , θ 1 ) θ θ 1 = f ( ρ 1 , θ 1 ) f ( ρ 1 , θ ) θ 1 θ ,
where f ( ρ 1 , θ 1 ) and f ( ρ 1 , θ 1 ) are given. That is to say,
f ( ρ 1 , θ ) = ( 1 h ) f ( ρ 1 , θ 1 ) + h f ( ρ 1 , θ 1 ) , h = θ θ 1 θ 1 θ 1 .
In the same manner,
f ( ρ 2 , θ ) = ( 1 l ) f ( ρ 2 , θ 2 ) + l f ( ρ 2 , θ 2 ) , l = θ θ 2 θ 2 θ 2 ,
f ( ρ , θ ) = ( 1 w ) f ( ρ 1 , θ ) + w f ( ρ 2 , θ ) , w = ρ ρ 1 ρ 2 ρ 1 .
Thus, the datum in position ( ρ , θ ) of the interpolated data can be calculated as shown below:
f ( ρ , θ ) = ( 1 w ) ( 1 h ) f ( ρ 1 , θ 1 ) + ( 1 w ) h f ( ρ 1 , θ 1 ) + w ( 1 l ) f ( ρ 2 , θ 2 ) + w l f ( ρ 2 , θ 2 ) .

4.2.3. Quantum Realization of Biarcuate Interpolation Method

Because the number of samples of polar angles on each circumference is different, the interpolation process of adaptive sampled-data becomes quite complicated. Assume that a ρ × 8 ρ ( ρ = 0 , 1 , , M 1 ) quantum data | D is scaled up to a ρ × 8 ρ ( ρ = 0 , 1 , , M 1 ) quantum data | D based on biarcuate interpolation. The scale ratio is r, i.e., M = r M , where r N and represented by k qubits. For the sake of simplicity, the interpolation process of adaptive sampled-data is divided into two steps according to the log-polar radius. The first step is interpolation based on the arcuate interpolation method. The second step is interpolation based on the biarcuate interpolation method using the data interpolated in the previous step. The specific process is discussed below.
Step 1: Circuit realization of arcuate interpolation method.
For each circumference with log-polar radius ρ in the scaled up data, if ( ρ + 1 ) is an integer multiple of r, i.e., ρ + 1 = r ( ρ 0 + 1 ) , then the interpolated data is the corresponding circumference. As shown in Figure 21, ρ 0 and θ 0 in (a) are the log-polar radius and polar angle corresponding to ρ and θ in (b), respectively. That is,
ρ 0 e n l a r g e ρ , θ 0 e n l a r g e θ , θ 0 + 1 e n l a r g e θ + r .
The data after arcuate interpolation is shown in Figure 21c as the solid line. In this step, the data on the dotted line has not been interpolated.
It can be seen from Figure 21b, there are ( r 1 ) points between θ and ( θ + r ) that need to be interpolated. In order to get the data of these points, the value of ρ 0 and θ 0 in the original data must be found first. Obviously,
r ( ρ 0 + 1 ) = ρ + 1 , r θ 0 = θ , r ( θ 0 + 1 ) = θ + r .
Thus,
ρ 0 = ρ + 1 r 1 = Q [ ρ + 1 , r ] 1 , θ 0 = θ r = Q [ θ , r ] = Q [ θ , r ] ,
where θ = θ , θ , , θ + r 1 and Q [ A , B ] is the quotient of A divided by B in division with remainder. It is easy to get h = R [ θ , r ] r , where R [ A , B ] is the remainder of A divided by B in division with remainder. Therefore, combining Equations (28) and (36), the value f ( ρ , θ ) in position ( ρ , θ ) of the interpolated data in Figure 21b can be calculated to arcuate interpolation according to the following equation:
f ( ρ , θ ) = ( 1 h ) f ( ρ 0 , θ 0 ) + h f ( ρ 0 , θ 0 + 1 ) = r R [ θ , r ] r f ( Q [ ρ + 1 , r ] 1 , Q [ θ , r ] ) + R [ θ , r ] r f ( Q [ ρ + 1 , r ] 1 , Q [ θ , r ] + 1 ) = ( r R [ θ , r ] ) f ( Q [ ρ + 1 , r ] 1 , Q [ θ , r ] ) + R [ θ , r ] f ( Q [ ρ + 1 , r ] 1 , Q [ θ , r ] + 1 ) r ,
In order to prepare the data information f ( ρ , θ ) in position ( ρ , θ ) of the resulting data, the data information f ( ρ 0 , θ 0 ) and f ( ρ 0 , θ 0 + 1 ) in positions ( ρ 0 , θ 0 ) and ( ρ 0 , θ 0 + 1 ) of the original data need to be prepared first. To achieve the data information for the corresponding position, two quantum operators Ω ρ 0 , θ 0 and Ω ρ 0 , θ 0 + 1 are used to achieve the original data information, respectively. The quantum operator Ω ρ , θ can realize the aim of assigning the data information as follows:
Ω ρ , θ | 0 q = t = 0 q 1 Ω ρ θ t | 0 = t = 0 q 1 0 s ρ θ t = t = 0 q 1 s ρ θ t = | f ( ρ , θ ) .
Due to the quantum superposition, all data are processed simultaneously, so all original data must be assigned. Let the assignment operation Ω = ρ = 0 M 1 θ = 0 8 ρ + 7 Ω ρ , θ , then the time complexity of the assignment operation is O ( q m M 2 ) .
The quantum circuit of arcuate interpolation is shown in Figure 22, where m = log 2 M , M > 1 ; 1 , M = 1 , and m = log 2 M , M > 1 ; 1 , M = 1 , . If the auxiliary bits are less than the input bits in multiple C- N O T operations, only the lowest bits of the input bits are copied. The dotted line serves no purpose but as an indicator. When R = R [ ρ + 1 , r ] = 0 , that is, when ( ρ + 1 ) is an integer multiple of r, the output f ( ρ , θ ) is the required data. Since the final output is the quotient without considering the remainder, f ( ρ , θ ) has an error of less than one. The time complexity of arcuate interpolation is O ( m 3 + q m M 2 ) .
Step 2: Circuit realization of biarcuate interpolation method.
As shown in Figure 23, this step interpolates the part which is not interpolated in Step 1, that is, the data in the dotted part of Figure 21c or Figure 23a. Figure 23b shows the specific schematics of biarcuate interpolation for adaptive sampled-data, where points ( ρ 1 , θ 1 ) , ( ρ 1 , θ 1 + 1 ) , ( ρ 2 , θ 2 ) and ( ρ 2 , θ 2 + 1 ) in Figure 23a are the four closest points to ( ρ , θ ) . Figure 23c describes the data after biarcuate interpolation, which is the scaled up data.
It is obvious that the four interpolated data f ( ρ 1 , θ 1 ) , f ( ρ 1 , θ 1 + 1 ) , f ( ρ 2 , θ 2 ) and f ( ρ 2 , θ 2 + 1 ) from the previous step are needed to complete the interpolation for this step. The mathematical expression is as follows:
f ( ρ , θ ) = ( 1 w ) ( 1 h ) f ( ρ 1 , θ 1 ) + ( 1 w ) h f ( ρ 1 , θ 1 + 1 ) + w ( 1 l ) f ( ρ 2 , θ 2 ) + w l f ( ρ 2 , θ 2 + 1 ) .
From Step 1, ( ρ 1 + 1 ) and ( ρ 2 + 1 ) are both integer multiples of r, assuming that:
ρ 1 + 1 = k r , ρ 2 + 1 = ( k + 1 ) r .
where k = Q [ ρ 1 + 1 , r ] . That is:
ρ 1 = r k 1 = r Q [ ρ + 1 , r ] 1 ,
ρ 2 = r k + r 1 = r Q [ ρ + 1 , r ] + r 1 ,
ρ 2 ρ 1 = r .
Oobviously,
w = R [ ρ + 1 , r ] ρ 2 ρ 1 = R [ ρ + 1 , r ] r .
Because there are 8 ( ρ + 1 ) polar angles on each circumference with log-polar radius ρ , and the common multiple of 8 ( ρ 1 + 1 ) and 8 ( ρ + 1 ) is 8 ( ρ + 1 ) ( ρ 1 + 1 ) . The principle of common multiples is used, there are:
θ 1 = Q [ θ ( ρ 1 + 1 ) , ( ρ + 1 ) ] = Q [ θ r Q [ ρ + 1 , r ] , ρ + 1 ] ,
h = R [ θ ( ρ 1 + 1 ) , ( ρ + 1 ) ] ρ + 1 = R [ θ r Q [ ρ + 1 , r ] , ρ + 1 ] ρ + 1 .
In the same manner,
θ 2 = Q [ θ ( ρ 2 + 1 ) , ( ρ + 1 ) ] = Q [ θ ( r Q [ ρ + 1 , r ] + r ) , ρ + 1 ] ,
l = R [ θ ( ρ 2 + 1 ) , ( ρ + 1 ) ] ρ + 1 = R [ θ ( r Q [ ρ + 1 , r ] + r ) , ρ + 1 ] ρ + 1 .
Thus, the Equation (39) can be rewritten as:
f ( ρ , θ ) = [ r R [ ρ + 1 , r ] ρ + 1 R [ θ r Q [ ρ + 1 , r ] , ρ + 1 ] . × f ( r Q [ ρ + 1 , r ] 1 , Q [ θ r Q [ ρ + 1 , r ] , ρ + 1 ] ) + r R [ ρ + 1 , r ] R [ θ r Q [ ρ + 1 , r ] , ρ + 1 ] × f ( r Q [ ρ + 1 , r ] 1 , Q [ θ r Q [ ρ + 1 , r ] , ρ + 1 ] + 1 ) + R [ ρ + 1 , r ] ρ + 1 R [ θ ( r Q [ ρ + 1 , r ] + r ) , ρ + 1 ] × f ( r Q [ ρ + 1 , r ] + r 1 , Q [ θ ( r Q [ ρ + 1 , r ] + r ) , ρ + 1 ] ) + R [ ρ + 1 , r ] R [ θ ( r Q [ ρ + 1 , r ] + r ) , ρ + 1 ] × f ( r Q [ ρ + 1 , r ] + r 1 , Q [ θ ( r Q [ ρ + 1 , r ] + r ) , ρ + 1 ] + 1 ) ] ÷ r ÷ ( ρ + 1 ) .
As shown in Figure 24, the quantum circuit of biarcuate interpolation is given, where: m = log 2 M , M > 1 ; 1 , M = 1 , and the + ( r 1 ) operation can be realized by ( r 1 ) plus one operation. The dotted line serves no purpose but as an indicator. R = R [ ρ + 1 , r ] represents the remainder of ( ρ + 1 ) divided by r. When R 0 , the output f ( ρ , θ ) is the required data. Similarly, f ( ρ , θ ) has an error of less than one. However, due to the characteristics of the adaptive sampling method, there may be additional errors, which will be explained in detail in the next subsection. The time complexity of biarcuate interpolation is O ( m 3 + r q m M 2 ) . Therefore, the time complexity of the whole interpolation process is O ( m 3 + r q m M 2 ) .
In classical computers, the algorithm complexity is mainly evaluated by two parameters, one is the number of rows of pre-cached data required to complete interpolation, and the other is the number of operation steps such as addition, subtraction, multiplication, division and displacement required to complete interpolation. Here, the time complexity of the proposed algorithm is estimated by 1- b i t addition and subtraction as the unit of operation on classical computers. The m × n multiplication consists of O ( m n ) additions, and the n × n division can be decomposed into O ( n 2 ) subtractions, assuming that all of the original data is known. By Equations (37) and (49), the time complexity of arcuate interpolation and biarcuate interpolation are O ( ( m 2 + k 2 q 2 ) r M 2 ) and O ( ( k 2 + q 2 ) r q 2 m 2 M 2 ) , respectively. Therefore, the time complexity of the whole interpolation process in classical computers is O ( ( k 2 + q 2 ) r q 2 m 2 M 2 ) . Obviously, the time complexity is much higher than that of quantum computers.

4.3. Example Verification

In this section, the sample data in Figure 4 is used to demonstrate the specific scaling-up process. For the ρ × 8 ρ ( ρ = 0 , 1 ) data, we scale it up three times to become a ρ × 8 ρ ( ρ = 0 , 1 , , 5 ) dataset. When ρ = 2 or 5, ( ρ + 1 ) is an integer multiple of three. Therefore, the data when ρ = 2 and 5 are interpolated first. When ρ = 2 , the Equation (37) can be rewritten as:
f ( 2 , θ ) = 3 R [ θ , 3 ] f ( 0 , Q [ θ , 3 ] ) + R [ θ , 3 ] f ( 0 , Q [ θ , 3 ] + 1 ) 3 ,
where θ = 0 , 1 , , 23 . The specific operation is as follows:
f ( 2 , 0 ) = f ( 0 , 0 ) = 0 ,
f ( 2 , 1 ) = 2 f ( 0 , 0 ) + f ( 0 , 1 ) 3 = 10 ,
f ( 2 , 23 ) = f ( 0 , 7 ) + 2 f ( 0 , 8 ) 3 = f ( 0 , 7 ) + 2 f ( 0 , 0 ) 3 = 64 .
Owing to the characteristics of the plus one module, f ( 0 , 8 ) = f ( 0 , 0 ) . In the same manner, the data when ρ = 5 can be achieved. The data after arcuate interpolation are shown in Figure 25.
Then, the rest of the data can be calculated from the data already obtained by Equation (50). When ρ > r = 3 , the data that need to be interpolated can be easily calculated. For example, when ρ = 4 , the Equation (49) can be rewritten as:
f ( 4 , θ ) = [ 5 R [ 3 θ , 5 ] f ( 2 , Q [ 3 θ , 5 ] ) + R [ 3 θ , 5 ] f ( 2 , Q [ 3 θ , 5 ] + 1 ) .
+ 2 5 R [ 6 θ , 5 ] f ( 5 , Q [ 6 θ , 5 ] ) + 2 R [ 6 θ , 5 ] f ( 5 , Q [ 6 θ , 5 ] + 1 ) ] ÷ 15 ,
where θ = 0 , 1 , , 39 . And the specific operation is as follows:
f ( 4 , 0 ) = 5 f ( 2 , 0 ) + 10 f ( 5 , 0 ) 15 = 42 ,
f ( 4 , 1 ) = 2 f ( 2 , 0 ) + 3 f ( 2 , 1 ) + 8 f ( 5 , 1 ) + 2 f ( 5 , 2 ) 15 = 27 ,
f ( 4 , 39 ) = 3 f ( 2 , 23 ) + 2 f ( 2 , 24 ) + 2 f ( 5 , 46 ) + 8 f ( 5 , 47 ) 15 = 72 ,
where f ( 2 , 24 ) = f ( 2 , 0 ) = 0 . However, when ρ < r = 3 , the process becomes a little more complicated. When ρ = 0 , the Equation (49) turns into:
f ( 0 , θ ) = 2 f ( 1 , 0 ) + f ( 2 , 3 θ ) 3 = f ( 2 , 3 θ ) 3 , θ = 0 , 1 , , 7 ,
where f ( 1 , 0 ) should be the data of the pole in the log-polar coordinates. However, the adaptive sampling method does not sample at the poles; thus, the characteristics of the minus one module are f ( 1 , 0 ) = f ( 7 , 0 ) . In this example, f ( 7 , 0 ) is a redundant datum that has not been prepared, so f ( 7 , 0 ) = 0 . If f ( 7 , 0 ) 0 , there is a certain error. The effect of all the data after biarcuate interpolation is shown in Figure 26.

5. Conclusions

In the existing quantum data representation models, the two variables representing positions are independent of each other. However, in the quantum data representation model proposed in this paper, the upper limit of the sampling number of the polar angles is related to the log-polar radius. This is an inspiration for the future research work about the representation of irregularly shaped data.
The quantum scaling up algorithm with integer scaling ratio based on biarcuate interpolation and its circuit of adaptive sampled-data in log-polar coordinates are also given in this paper. In the quantum scaling up circuit, the operation modules required are constructed on the basis of the existing methods in the references. Meanwhile, the feasibility of the quantum algorithm is also verified by an example. However, the quantum scaling up algorithm still has certain shortcomings, and the quantum scaling down circuit has not been given. That’s one of the most important things we’ll be looking at in the future. In addition, how to change the scaling ratio from integer multiples to real multiples and how to optimize the circuit are also problems worth studying in future work.

Author Contributions

Writing—original draft, C.L.; Writing—review and editing, D.L. and H.D. 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.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Feynman, R.P. Simulating physics with computers. Int. J. Theor. Phys 1982, 21, 467–488. [Google Scholar] [CrossRef]
  2. Shor, P.W. Algorithms for quantum computation: Discrete logarithms and factoring. In Proceedings of the 35th Annual Symposium on Foundations of Computer Science, Santa Fe, NM, USA, 20–22 November 1994; pp. 124–134. [Google Scholar]
  3. Grover, L.K. A fast quantum mechanical algorithm for database search. In Proceedings of the 28th Annual ACM Symposium on the Theory of Computing (STOC), Philadelphia, PA, USA, 22–24 May 1996; pp. 212–219. [Google Scholar]
  4. Venegas-Andraca, S.E.; Bose, S. Storing, processing and retrieving an image using quantum mechanics. In Proceedings of the SPIE 5105, Quantum Information and Computation, Orlando, FL, USA, 21–25 April 2003; pp. 137–147. [Google Scholar]
  5. Latorre, J.I. Image compression and entanglement. arXiv 2005, arXiv:quant-ph/0510031. [Google Scholar]
  6. Venegas-Andraca, S.E.; Ball, J.L. Processing images in entangled quantum systems. Quantum Inf. Process. 2010, 9, 1–11. [Google Scholar] [CrossRef]
  7. Le, P.Q.; Dong, F.Y.; Hirota, K. A flexible representation of quantum images for polynomial preparation, image compression, and processing operations. Quantum Inf. Process. 2011, 10, 63–84. [Google Scholar] [CrossRef]
  8. Zhang, Y.; Lu, K.; Gao, Y.H.; Wang, M. NEQR: A novel enhanced quantum representation of digital images. Quantum Inf. Process. 2013, 12, 2833–2860. [Google Scholar] [CrossRef]
  9. Zhang, Y.; Lu, K.; Gao, Y.H.; Xu, K. A novel quantum representation for log-polar images. Quantum Inf. Process. 2013, 12, 3103–3126. [Google Scholar] [CrossRef]
  10. Zhang, R.; Xu, M.Y.; Lu, D.Y. A generalized floating-point quantum representation of 2-D data and their applications. Quantum Inf. Process. 2020, 19, 20. [Google Scholar] [CrossRef]
  11. Wang, B.; Hao, M.Q.; Li, P.C.; Liu, Z.B. Quantum representation of indexed images and its applications. Int. J. Theor. Phys. 2020, 59, 374–402. [Google Scholar] [CrossRef]
  12. Le, P.Q.; Iliyasu, A.M.; Dong, F.; Hirota, K. Fast Geometric Transformations on Quantum Images. IAENG Int. J. Appl. Math. 2010, 40, 113–123. [Google Scholar]
  13. Jiang, N.; Wu, W.; Wang, L.; Zhao, N. Quantum image pseudocolor coding based on the density-stratified method. Quantum Inf. Process. 2015, 14, 1735–1755. [Google Scholar] [CrossRef]
  14. Jiang, N.; Ji, Z.; Li, H.; Wang, J. Quantum image interest point extraction. Mod. Phys. Lett. A 2021, 36, 16. [Google Scholar] [CrossRef]
  15. Jiang, N.; Wang, J.; Mu, Y. Quantum image scaling up based on nearest-neighbor interpolation with integer scaling ratio. Quantum Inf. Process. 2015, 14, 4001–4026. [Google Scholar] [CrossRef]
  16. Zhou, R.G.; Hu, W.W.; Fan, P.; Lan, H. Quantum realization of the bilinear interpolation method for NEQR. Sci. Rep-UK 2017, 7, 17. [Google Scholar] [CrossRef] [PubMed]
  17. Li, P.C.; Liu, X. Bilinear interpolation method for quantum images based on quantum Fourier transform. Int. J. Quantum Inf. 2018, 16, 26. [Google Scholar] [CrossRef]
  18. Zhou, R.G.; Cheng, Y.D.; Lan, H.; Liu, X.A. Quantum watermarking algorithm based on chaotic affine scrambling. Int. J. Quantum Inf. 2019, 17, 23. [Google Scholar] [CrossRef]
  19. Li, P.C.; Xiao, H.; Li, B.X. Quantum representation and watermark strategy for color images based on the controlled rotation of qubits. Quantum Inf. Process. 2016, 15, 4415–4440. [Google Scholar] [CrossRef]
  20. Yan, F.; Abdullah, M.I.; Phuc, Q.L.; Sun, B.; Dong, F.Y.; Kaoru, H. A parallel comparison of multiple pairs of images on quantum computers. Int. J. Innov. Comput. Appl. (IJICA) 2013, 5, 199–212. [Google Scholar] [CrossRef]
  21. Matungka, R. Studies on Log-Polar Transform for Image Registration and Improvements Using Adaptive Sampling and Logarithmic Spiral. Ph.D. Thesis, The Ohio State University, Columbus, OH, USA, 2009. [Google Scholar]
  22. Wang, D.; Liu, Z.; Zhu, Y.; Li, S. Design of Quantum Comparator Based on Extended General Toffoli Gates with Multiple Targets. Comput. Sci. 2012, 39, 302–306. [Google Scholar]
  23. Nielsen, M.A.; Chuang, I.L. Quantum Computation and Quantum Information; Cambridge University Press: New York, NY, USA, 2000. [Google Scholar]
  24. Barenco, A.; Bennett, C.H.; Cleve, R.; Divincenzo, D.P.; Margolus, N.; Shor, P.; Sleator, T.; Smolin, J.; Weinfurter, H. Elementary gates for quantum computation. Phys. Rev. A 1995, 52, 3457–3467. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  25. Vedral, V.; Barenco, A.; Ekert, A. Quantum networks for elementary arithmetic operations. Phys. Rev. A 1996, 54, 147–153. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  26. Li, P.C.; Shi, T.; Zhao, Y.; Lu, A. Design of threshold segmentation method for quantum image. Int. J. Theor. Phys. 2020, 59, 514–538. [Google Scholar] [CrossRef]
  27. Khosropour, A.; Aghababa, H.; Forouzandeh, B. Quantum Division Circuit Based on Restoring Division Algorithm. In Proceedings of the 2011 Eighth International Conference on Information Technology, Pafos, Cyprus, 31 August–2 September 2011; pp. 1037–1040. [Google Scholar]
Figure 1. (a) Sampling in log-polar coordinates. (b) Sampling in Cartesian coordinates.
Figure 1. (a) Sampling in log-polar coordinates. (b) Sampling in Cartesian coordinates.
Entropy 23 01462 g001
Figure 2. (a) Adaptive sampling in log-polar coordinates. (b) The resulting sample distribution in the polar angular and log-polar radius directions.
Figure 2. (a) Adaptive sampling in log-polar coordinates. (b) The resulting sample distribution in the polar angular and log-polar radius directions.
Entropy 23 01462 g002
Figure 3. Format of floating-point numbers in IEEE-754.
Figure 3. Format of floating-point numbers in IEEE-754.
Entropy 23 01462 g003
Figure 4. (a) A 2 × 16 adaptive sampled-data in log-polar coordinates. (b) Its quantum representation expression according to the AS-NEQR sub-model.
Figure 4. (a) A 2 × 16 adaptive sampled-data in log-polar coordinates. (b) Its quantum representation expression according to the AS-NEQR sub-model.
Entropy 23 01462 g004
Figure 5. The data information and the redundancy.
Figure 5. The data information and the redundancy.
Entropy 23 01462 g005
Figure 6. (a) Prepare position information. (b) Prepare data information.
Figure 6. (a) Prepare position information. (b) Prepare data information.
Entropy 23 01462 g006
Figure 7. (a) Quantum circuit of plus one module. (b) Quantum circuit of minus one module.
Figure 7. (a) Quantum circuit of plus one module. (b) Quantum circuit of minus one module.
Entropy 23 01462 g007
Figure 8. Quantum circuit for multiplying by eight module.
Figure 8. Quantum circuit for multiplying by eight module.
Entropy 23 01462 g008
Figure 9. Quantum circuit of comparator module.
Figure 9. Quantum circuit of comparator module.
Entropy 23 01462 g009
Figure 10. Quantum circuit of Step 2.
Figure 10. Quantum circuit of Step 2.
Entropy 23 01462 g010
Figure 11. Toffoli gate is decomposed into basic quantum gates.
Figure 11. Toffoli gate is decomposed into basic quantum gates.
Entropy 23 01462 g011
Figure 12. The quantum circuit of preparation for the example data shown in Figure 4.
Figure 12. The quantum circuit of preparation for the example data shown in Figure 4.
Entropy 23 01462 g012
Figure 13. Quantum circuit of multiply C- N O T operation.
Figure 13. Quantum circuit of multiply C- N O T operation.
Entropy 23 01462 g013
Figure 14. (a) Quantum circuit of adder. (b) Quantum circuit of half adder. (c) Quantum circuit of full adder. (d) Quantum simple circuit of adder.
Figure 14. (a) Quantum circuit of adder. (b) Quantum circuit of half adder. (c) Quantum circuit of full adder. (d) Quantum simple circuit of adder.
Entropy 23 01462 g014
Figure 15. (a) Quantum circuit of subtracter. (b) Quantum circuit of half subtracter. (c) Quantum circuit of full subtracter. (d) Quantum simple circuit of subtracter.
Figure 15. (a) Quantum circuit of subtracter. (b) Quantum circuit of half subtracter. (c) Quantum circuit of full subtracter. (d) Quantum simple circuit of subtracter.
Entropy 23 01462 g015
Figure 16. Quantum circuit of multiplier module.
Figure 16. Quantum circuit of multiplier module.
Entropy 23 01462 g016
Figure 17. Pseudo code for the division process.
Figure 17. Pseudo code for the division process.
Entropy 23 01462 g017
Figure 18. (a) Quantum circuit of divider. (b) Quantum circuit of multiply by two. (c) Quantum simple circuit of divider.
Figure 18. (a) Quantum circuit of divider. (b) Quantum circuit of multiply by two. (c) Quantum simple circuit of divider.
Entropy 23 01462 g018
Figure 19. Arcuate interpolation method.
Figure 19. Arcuate interpolation method.
Entropy 23 01462 g019
Figure 20. Biarcuate interpolation method.
Figure 20. Biarcuate interpolation method.
Entropy 23 01462 g020
Figure 21. (a) The original data. (b) Schematic of arcuate interpolation. (c) The data after arcuate interpolation.
Figure 21. (a) The original data. (b) Schematic of arcuate interpolation. (c) The data after arcuate interpolation.
Entropy 23 01462 g021
Figure 22. The quantum circuit of arcuate interpolation.
Figure 22. The quantum circuit of arcuate interpolation.
Entropy 23 01462 g022
Figure 23. (a) The data after arcuate interpolation. (b) Schematic of biarcuate interpolation. (c) The scaled up data.
Figure 23. (a) The data after arcuate interpolation. (b) Schematic of biarcuate interpolation. (c) The scaled up data.
Entropy 23 01462 g023
Figure 24. The quantum circuit of biarcuate interpolation.
Figure 24. The quantum circuit of biarcuate interpolation.
Entropy 23 01462 g024
Figure 25. The data after arcuate interpolation.
Figure 25. The data after arcuate interpolation.
Entropy 23 01462 g025
Figure 26. The sample data in Figure 4 is magnified three times.
Figure 26. The sample data in Figure 4 is magnified three times.
Entropy 23 01462 g026
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Li, C.; Lu, D.; Dong, H. Quantum Representations and Scaling Up Algorithms of Adaptive Sampled-Data in Log-Polar Coordinates. Entropy 2021, 23, 1462. https://doi.org/10.3390/e23111462

AMA Style

Li C, Lu D, Dong H. Quantum Representations and Scaling Up Algorithms of Adaptive Sampled-Data in Log-Polar Coordinates. Entropy. 2021; 23(11):1462. https://doi.org/10.3390/e23111462

Chicago/Turabian Style

Li, Chan, Dayong Lu, and Hao Dong. 2021. "Quantum Representations and Scaling Up Algorithms of Adaptive Sampled-Data in Log-Polar Coordinates" Entropy 23, no. 11: 1462. https://doi.org/10.3390/e23111462

APA Style

Li, C., Lu, D., & Dong, H. (2021). Quantum Representations and Scaling Up Algorithms of Adaptive Sampled-Data in Log-Polar Coordinates. Entropy, 23(11), 1462. https://doi.org/10.3390/e23111462

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