Abstract
This article presents a new approach to the problem of transforming one quantum state into another. It is shown that an -qubit superposition can be obtained from another -qubit superposition , by using only rotations, each presented by one controlled rotation gate. The quantum superpositions with real amplitudes are considered. The traditional two-stage approach requires twice as many rotations. Here, both transformations to the conventual basis state, and , use rotations each on two binary planes, and many of these rotations require additional sets of CNOTs to be represented as 1- or 2-qubit-controlled gates. The proposed method is based on the concept of the discrete signal-induced heap transform (DsiHT) which is unitary and generated by a vector and a set of angular equations with given parameters. The quantum analog of this transform is described. The main characteristic of the DsiHT is the path of processing the data. It is shown that there exist such fast paths that allow for effective computing of the DsiHT, which leads to the simple quantum circuits for state preparation and transformation. Examples of such paths are given and quantum circuits for preparation and transformation of 2-, 3-, and 4-qubits are described in detail. CNOT gates are not used, but only controlled gates of elementary rotations around the -axis. It is shown that the transformation and, in particular, only rotation gates with control qubits are required for initialization of 2-, 3-, and 4-qubits. The quantum circuits are simple and have a recursive form, which makes them easy to implement for arbitrary -qubit superposition, with This approach significantly reduces the complexity of quantum state transformations, paving the way for more efficient quantum algorithms and practical implementations on near-term quantum devices.
1. Introduction
Quantum state transformation—changing a quantum state through quantum operations or gates—is fundamental to many quantum algorithms. It enables the manipulation and evolution of quantum information, facilitating complex computations. Mastery of state transformations is crucial for multi-qubit systems, which utilize specific gates to create entangled states and perform calculations. It is also vital for quantum error correction to ensure the coherence and fidelity of quantum information. Effective and low-noise state preparation procedures are essential for scalable distribution loading, which underpins a wide range of algorithms that provide a quantum advantage. Therefore, an important step in quantum computation in many applications is the multi-qubit superposition transformation. This is the problem of transformation of one quantum state into another one. Many papers have been published related to this problem [1,2,3,4,5,6,7,8]. In an analysis of these works, it is important to note the following. The view has been formed that operations on three or more qubits are complex for quantum computers. Therefore, when creating quantum circuits, much attention is paid to one- and two-qubit operations, or gates. As a result, each multi-qubit gate, as a unitary transformation, is represented by a chain of single-qubit and dual-qubit gates together with a chain of CNOTs, which may include the long-range CNOTs. The schemes of many simple (for a classical computer) operations have become extraordinarily complex and are full of such switches of operations from one qubit to another. Therefore, much attention is paid to reducing the number of such gates in quantum circuits [9,10,11]. As is known, the number of elementary rotation gates is around the number and CNOTs around the number [12,13,14].
The solution to the problem of multi-qubit state-to-state transformation traditionally lies in the idea of preparing the desired state from the computational basis state, . Here, is the dimension of the superposition, or the number of qubits it contains. We note the simple method with Givens rotations, . They rotate points inside the unit circle into the interval on the -axis. In matrix theory, such rotations are used in each step of the QR decomposition of a square matrix, when transforming the first column of the submatrix into the vector of form . We consider only real vectors with norm 1, as for quantum superpositions with real amplitudes. Since it is possible to perform transformations of two vectors and into the unit vector of same dimension,
the transformation can be fulfilled by the unitary transform . Both transforms and are unitary, and is the inverse of . Moreover, each of them requires rotations with almost the same number of CNOTs, when implementing calculations with 1- and 2-qubit gates [8]. If CNOTs do not operate on the adjacent, or nearest-neighbor, bit planes (BPs), they can be implemented by a cascade of CNOTs operating on the nearest-neighbor bit planes. The permutations with Gray code can be used for this purpose [14,15]. The number of all CNOTs is estimated as [7].
In this work, we analyze the method of rotations and describe the best and fastest, in our opinion, approach of elementary rotations for transforming the state. The quantum states, or superpositions of qubits, are considered with real amplitudes. The state-to-state transformation can be performed in one step, which is equivalent to implementing only one transformation which is similar to instead of two transforms and in Equation (1). This is the main goal of this work, not counting and reducing the number of CNOT gates; a lot of work has already been conducted in this direction [9,10,11]. We introduce and describe the new concept of the quantum signal-induced heap transform (QsiHT), which is the analog of the discrete signal-induced heap transform (DsiHT) [16,17]. With this transform, we show
- How to implement -qubit state-to-state transformation with real amplitudes, by using only elementary rotations, each with only one angle. This number is half as much as the best-known estimation of rotations.
- Visual numerical examples of preparing states for two, three, and four qubits.
- How to initiate any multi-qubit superposition of qubits (without operation of tensor product).
- The importance of the path in the -qubit QsiHT and existence of the fast paths for effective computing of the QsiHT. For large multi-qubit superpositions, there are various fast paths (with their number increasing with the number of qubits), and we are confident that among them, it is possible to choose the most convenient path for implementing state transformations in the topology (architecture) of quantum systems.
- How to build the simple quantum circuits for the -qubit QsiHT.
The rest of this paper is organized as follows: In Section 2, simple qubit operations and local and controlled gates are described. The concept of the weak two-wheel carriage DsiHT is presented in Section 3. The strong two-wheel carriage DsiHT is described and an example with the 2-qubit QsiHT is given in Section 4. The DsiHT-based method of qubit initiation is presented in Section 5, and an example with a 3-qubit superposition is described in detail. In Section 6, we discuss the importance of the path in computation of the DsiHT. The quantum circuits for initiation of 2-, 3-, and 4-qubit states by the QsiHT with fast paths are described. The general concept of the DsiHT is presented in Section 7. Examples of 2- and 3-qubit preparation with three and seven rotations, respectively, are described in detail. Finally, Section 8 concludes the paper with a summary of the contributions.
2. One- and Two-Qubit Operation
In this section, we briefly describe the concept of local gates on single qubits in the quantum superposition [18,19]. The 1- and 2-qubit operators are described by 22 and 44 unitary real or complex matrices, respectively. Let us find out what it means to apply a gate to one qubit in a two-qubit superposition. Consider the computational basis of states. In the general case, a 2-qubit superposition may be the Kronecker product of two 1-qubit states and , or maybe not. In the first case, the 2-qubit is non-entangled, and in the second case, the 2-qubit is entangled. Let , , and denote some unitary operations, that is, 22, 22, and 44 matrices, respectively. If the operation on the non-entangled 2-qubit, that is, 2-qubit superposition, is described by
then it is the qubit-wise operation, or the operation on two qubits and of . This operation includes the operations on single qubits, too,
As an example, consider the unitary matrix with the real coefficients and The first operation is described in the matrix form as
The circuit element of this gate is shown in Figure 1 in part (a). It is the local gate on the first qubit. Here, is the 22 identity matrix. In the diagram, this gate (operator) is connected to the first abstract quantum wire (quantum bit). The circuit element is shown in part (b) as the operation on the second qubit. This operation can be written as Note that in general, the input, or the 2-qubit superposition , of the circuit does not necessarily have to be entangled. Any 2-qubit superposition is assumed as an input.
Figure 1.
The circuit elements of the local gates (a) , (b) , (c) , and (d) .
The one-qubit gate controlled by one qubit (or bit) is described by the operation of the Kronecker sum of matrices. The circuit elements in Figure 1c,d are described in the matrix form as follows:
Note that if a 2-qubit superposition is non-entangled, then may be entangled. These operations are performed on the first or last two amplitudes of , but not on the qubit or . The matrices of the local gates and are more complex than the matrices of the controlled gates and . For instance,
The local and controlled multi-qubit gates are described by similar matrices by using the operations of the Kronecker sum and product. In the next sections, we consider such gates when describing the quantum circuits for multi-qubit state preparation and transformation.
3. Definition of the DsiHT
In this section, we describe the concept of the DsiHT with Givens rotations. We note the following feature of many unitary transformations used in engineering and science. The quantum Fourier transform (QFT) is well-known in quantum computation [20,21,22]. This transform is used in the solution of such problems as Shor’s algorithm for integer factorization, the quantum phase estimation algorithm, systems of linear equations, and others [23,24,25,26]. The QFT is the quantum analog of the -point discrete Fourier transform, where integer . The basis functions of the transform are complex exponential functions on the unit circle. Many other discrete unitary transformations also use sets of defined-in-advance basis functions. We mention, for example, the cosine, Hadamard, Hartley, cosine, and slant transforms [27,28,29]. The -point discrete signal-induced heap transform (DsiHT) generates the basis by a given signal of length . This signal is called the generator of the transform [30,31]. The DsiHT with its simple and fast algorithm (for any order of transformation) is successfully used in many applications in grayscale and color image processing. In addition, the DsiHT can be used for QR decomposition of square matrices [32]. Together with the generator, the transform uses a parameter which defines the order of processing the input signals. This parameter, or path, is especially important and allows us to obtain different QR decompositions, with diagonal matrices for unitary matrices.
The key of the DsiHT is the generator together with the path. The number of generators can be more than one, but in this work, we focus on the transforms using one pre-selected generator. The selection of the generator depends on the application. For example, in image enhancement, the generators can be defined by the mean or median values along the rows or columns of an image result in particularly good-quality images. The generator-signal is denoted by . The length of the signal is considered to be a power of 2, The basic building blocks that make up the transform are 22 transforms, which can be linear or nonlinear [30]. In this work, we consider 22 rotation matrices, or Givens rotations. The transform is calculated by using Givens rotations by angles . In this case, the signal-generator is presented in its angular representation
plus the norm, . The signal is considered real. The DsiHT is a unitary transformation, , and when applied to the generator, it results in the vector . For a generator with the unit norm or after normalization, this -dimensional vector presents the computational basis state Thus, the following takes place: .
To define the DsiHT, rotations are performed on the generator, and at each stage of the transformation, one of the two rotation outputs is reset to zero. For instance, the generator data can be processed in order (it is the path) and , then the updated with , the next updated with , and so on. The illustration of the calculation with the eight-point generator is given in Figure 2. Here, and 22 transforms are rotations by angles . The DsiHT with this regular path is called the DsiHT with a weak wheel–carriage [16,31]. The last value is the updated-seven-times value of with a splash of energy of the generator, as if we were collecting energy, in one heap.
Figure 2.
The -point DsiHT using the regular path.
The DsiHT can be considered as a two-level unitary transformation. First, the angles are calculated from the generator . Then, at each stage of calculation, the transform is applied to the input signal in the same way (path) as for the generator. For the DsiHT with the weak carriage–wheel, this two-level transform is illustrated in Figure 3, for the case. The results of calculations are
Figure 3.
The diagram of the -point weak 2-wheel carriage DsiHT applied to a signal .
Thus, we described the concept of the DsiHT by using the traditional path, or the order of processing the component of the signal. The block diagrams of this transformation, shown in Figure 1 and Figure 2, are easy to describe in the general case of . However, there are other paths, perhaps not so simple, but also effective, and we will consider several such methods in the following sections.
4. The DsiHT with the Strong 2-Wheel Carriage
We will consider the concept of the strong DsiHT, or the DsiHT with a strong two-wheel carriage (for more detail, see [16,17]). The path of this DsiHT differs from the path used in the above DsiHT with the weak wheel–carriage. As an example, the block diagram of the eight-point strong DsiHT on its generator is shown in Figure 4. The case of real signals is considered. In this example, in the first step, the angle of the rotation is calculated from the conditions
Figure 4.
The -point strong DsiHT on the generator.
This transform is the Givens rotation, calculated by
with the angle . If the angle or Thus, the angle of rotation is defined from the angular equation Then, the first output, , of the transform is calculated in Equation (9). In the next step, the second angle of rotation, , is calculated from the conditions
Thus, Continuing similar calculations, the last angle of rotation is calculated, and then the last value
The value contains information on the energy of the generator.
The input eight-point signal is processed by the same seven rotations in the same order (path). This two-level strong carriage–wheel DsiHT with processing of the input signal with the generator is shown in Figure 5.
Figure 5.
The -point DsiHT (with the 2-wheel strong carriage).
In the general case, the -point DsiHT uses basic transformations , regardless of the path of the transform. The transform of the signal-generator equals
where is equal to plus/minus energy of the signal. We consider ; if it is negative, the last angle in rotation can be changed by Thus, the transformation, as well as the signal-generator, is uniquely determined by the data of and the angles of rotations. In other words, the transformation is decoded into the vector For the signal-generator with norm 1, the angular representation holds, with
The output is the transform of the input:
Note that the above algorithm can be split into two parts. In the first part, angles of all rotations can be calculated from the signal-generator. This is about the angular representation of the generator, . In the second part, the DsiHT of the input signal is calculated,
We now describe the DsiHT in the matrix form. For we denote by the block diagonal matrix with ones in the diagonal and the matrix of rotation in the cell , that is,
The matrix describes the rotation on neighbor bit planes and . For instance, in the case, consider the rotations
The bit planes 0 and 1, or 00 and 01, are adjacent planes; that is, the plane numbers differ by only one bit. The bit planes 1 and 2, or 01 and 10, are not adjacent planes.
In the matrix form, the DsiHT, , is written as the multiplication of block diagonal matrices with rotations on adjacent planes,
In the case, the four-point strong DsiHT with three rotations is written as
Now, we consider an example with the four-point DsiHT generated by a signal .
Example 1.
Let be the vector-signal with energy , and let the input signal be with energy . The DsiHT with the generator has the following matrix:
Here, the diagonal matrix 0.3162, 0.1054, 0.1491, 0.4472. The angles for this transformation are . One can note that the normalized vector-generator lies in the first row of this matrix. The transformation is described by the following decomposition by three rotations:
Consider the permutations and with the matrices
respectively. These two permutations describe the cyclic shifts of a four-point vector. The following holds for the rotation on the first and second bit planes: , that is,
Therefore, the matrix of the four-point DsiHT is described by three controlled gates as
The transform of the generators is , and for the input signal, . The normalized vectors, and , can be considered as the 2-qubit superpositions and The 2-qubit QsiHTs of these superpositions are and
The quantum scheme of the 2-qubit quantum QsiHT is given in Figure 6. The flowchart sorts denote the permutations.
Figure 6.
The quantum scheme of the 2-qubit QsiHT with the generator .
IBM’s Qiskit framework is an open-source library in Python for quantum computing developed by IBM [33,34]. It provides tools for building quantum circuits, simulating their behavior, and running them on actual quantum hardware through IBM’s backend. IBM’s Qiskit framework was used to construct and simulate the 2-qubit QsiHT quantum circuit designed to prepare the normalized quantum state corresponding to the vector . The circuit was built using the decomposition of rotation angles through the QsiHT to encode the target amplitudes, and its inverse was applied to map the target state onto a computational basis. The simulation involved extracting both the ideal-state vector amplitudes and the corresponding measurement probabilities. These were compared against shot-based measurements from simulated runs to assess the accuracy of the circuit. The mean square root errors (MSREs) between the expected and observed results were computed to quantify the performance of the state preparation. The results of simulation of this circuit in Qiskit are shown in Table 1 and Table 2.
Table 1.
The measured magnitudes for 2-qubit superposition by the 2-qubit QsiHT without channel noise.
Table 2.
The measured magnitudes for 2-qubit superposition by the 2-qubit QsiHT with channel noise.
In general, all the quantum circuit simulations in this paper were performed using IBM’s Qiskit framework (version 1.3.2) within a Python 3.10 environment. Simulations are conducted using Qiskit’s AerSimulator (version 0.16.0) backend. This backend provides a high-performance and noise-free simulation for quantum circuits. For each quantum circuit, all qubits are measured using Qiskit’s measure_all() method. Theoretical amplitudes and corresponding probabilities are computed using the Qiskit’s Statevector class, which returns the theoretical quantum state resulting from the circuit under near-ideal unitary execution. To evaluate sampling error, each circuit is executed with different shot counts. This allows for the systematic examination of the convergence for the sampled probabilities toward their theoretical values. These sampled results are collected using Qiskit’s AerSimulator default Sampler interface for a noise-free simulation, and the mean relative squared error (MRSE) between the empirical and theoretical distributions is computed as a quantitative measure of simulation accuracy.
Following the same methodology, a simulation with synthetic quantum channel noise is evaluated for each circuit as well. Qiskit’s GenericBackendV2 with its default parameters is used since this simulator backend introduces depolarizing, thermal relaxation, and readout errors. Amplitudes under this noisy simulator are obtained via the Statevector class output of the GenericBackendV2 simulation results after noise insertion, and the corresponding sampled probabilities are collected in the same manner as the noise-free simulations. The addition of this simulation approach allows for direct comparison between ideal unitary execution and the bias introduced by the synthetic quantum channel noise. These simulation results with channel noise are included after each noise-free simulation (see Table 2).
Thus, the same task, , can be solved by using different paths of the DsiHT. Each path defines the structure of the matrix and, therefore, the quantum circuit of the transformation. The number of rotations is the same, but the angles of the rotations are changed. The same is true for other orders of the DsiHT, when
5. Qubit Initiation by the DsiHT
In this section, we consider the inverse DsiHT and describe a simple quantum scheme for initiation of a multi-qubit superposition. Then, in Section 6, we show how important it is to choose such a path to make this scheme more efficient.
Let be the -D unit vector , which represents the -qubit superposition
Here, the components of the vector are real and complex, and is the conventional basis of states. We consider the case where is real. For the DsiHT generated by this vector, we have
In Example 1, such a DsiHT is described for the case, or the 2-qubit superposition . This unitary transformation is real. Therefore, its inverse transformation is defined by the matrix being a transpose to , that is, We obtain . Through the use of the property of the inverse operation (transposition), the matrix can be composed by the matrices of rotation by angles as follows:
To initiate the 2-qubit superposition from the first basis state , the quantum circuit of the inverse 2-qubit DsiHT shown in Figure 7 can be used. The angular representation of the signal (or the superposition ) thus allows this superposition to be initiated by three rotations.
Figure 7.
The quantum scheme for initiation of the 2-qubit superposition by the 2-qubit inverse QsiHT.
In the general case of , the unitary matrix of the DsiHT generated by the real signal is real. Therefore, the inverse DsiHT is described by the matrix transpose to the matrix of the DsiHT and
Example 2.
Consider the 8-D unit vector and the corresponding 3-qubit superposition
For the eight-point strong DsiHT with this generator, the transformation matrix can be written as
Seven rotations by the following angles (in degrees) are used:
The transform in the matrix form can be written as
Here, the diagonal matrix
The matrix of the inverse eight-point DsiHT is calculated by seven rotations in reverse order, as
The inverse transform of the first basis state can be written with the diagonal matrix as
This diagonal matrix was introduced to better illustrate the process of constructing this matrix . The first basis function of this transformation is the generator itself (the first column of the matrix). Each next basis function is a result of motion of the previous basis functions (for more detail, see [31]).
Any -qubit superposition can be obtained from the zero state by the unitary inverse heap transform generated by The DsiHT requires only rotations, and it is defined by the angular representation of . Not all of these Givens rotations act on adjacent bit planes, which are defined by the path of the transformation. However, there are paths that allow us to perform all calculations only on adjacent bit planes.
6. Path in the DsiHT
In this section, we discuss the path, which is an important characteristic of the DsiHT. The path, or the order in which components of both the generator and input signal are processed, can be chosen in different ways (for more detail, see [17]). Two more paths are shown in Figure 8. These are paths with partitioning into pairs. The path shown in part (a) resembles the path that is used in the eight-point fast Fourier transform (FFT) with decimation-in-frequency [35]. Only the eight-point DsiHT uses seven rotations (as butterflies) rather than butterflies in the FFT. These rotations are denoted by the circles with numbers in the figure. The angles of these rotations change when the path of the DsiHT changes. We will call the path in part (a) fast path #1 (or simply fast path), and fast path #2 is the path in part (b). The small open circles in these diagrams are used to indicate that these transform outputs are zero when the input is the generator
Figure 8.
The -point DsiHTs using (a) fast path #1 and (b) fast path #2 with splitting into pairs.
The path can be defined in such a way that the computation complexity of the transformation and its inverse will be minimized. For instance, it is possible to define a path that allows for simplification of quantum circuits of the -qubit QsiHT with only controlled gates of rotation. No permutations are required. The representation of the QsiHT matrix is still in the form shown in Equation (17); only the order of processing the input data and therefore the angles of rotations must be changed accordingly. The -qubit QsiHT always requires a maximum of rotations on different bit planes (some of the 22 rotations may be trivial). In the case of the strong QsiHT, for many rotations, these bit planes do not differ by only one bit and require additional permutations, as shown in the rotation example above. Other paths require rotations in other planes. Therefore, it is necessary to find better ways to simplify the calculations [36]. To illustrate this fact, we first consider the fast path, which is shown in Figure 8a, for the 8-point DsiHT, or 3-qubit QsiHT. Then, the example for the 2-qubit QsiHT is presented and compared with Example 1.
The notation will be used for the rotation by the angle in planes numbered and , where integer . The 3-qubit DsiHT with the fast path is calculated by seven rotations in the following way. In stage 1, four rotations are used, as shown below with the corresponding bit planes:
The circuit elements for these controlled rotation gates are shown in Figure 9.
Figure 9.
Four 3-qubit rotation gates with two control bits.
The second stage uses two rotations, and the last stage uses one rotation, as shown below:
The circuit elements of these rotation gates are shown in Figure 10.
Figure 10.
Three 3-qubit gates with two control qubits in the second stage.
Summarizing the above reasonings, we obtain the quantum circuit for the 3-qubit QsiHT with the fast path, which is shown in Figure 11. Seven controlled gates of rotations with 2 control qubits are used; there are no additional permutations. All rotations operate on adjacent bit planes, that is, on bit planes that differ by only one bit. Such bit planes are also called adjacent qubits.
Figure 11.
The circuit for the 3-qubit QsiHT with seven controlled rotation gates.
Based on this scheme, the circuit for the inverse 3-qubit QsiHT can be easily composed, and it is shown in Figure 12. The signs of all angles change, and seven controlled gates of rotation are executed in reverse order. Here, the input is a 3-qubit superposition and the output is . In the case where the input is the first basis state, , the output of the circuit is the 3-qubit superposition, . Thus, to initiate a 3-qubit superposition, only a maximum of seven rotation gates is required.
Figure 12.
The circuit for the inverse 3-qubit QsiHT with seven controlled rotation gates.
Now, let us analyze this circuit and compare it with the circuit of the strong 3-qubit DsiHT.
Example 3.
Consider the quantum circuit of the 3-qubit QsiHT with the fast path, which is given in Figure 13. The generator and its 3-qubit are the same as in Example 2. The angular representation of the generator with the fast path equals
Figure 13.
The circuit for the initiation of the 3-qubit state .
The matrix of this transformation can be written as
where This matrix has 32 zero coefficients compared to 21 zeros in the matrix for the strong DsiHT, which is given in Equation (31).
Now we describe the quantum circuit for the 3-qubit strong DsiHT. This transform is composed of seven rotations:
The angles are from the set in Equation (30). The block diagram of the transform is shown in Figure 14.
Figure 14.
The circuit for the 3-qubit QsiHT with seven rotations.
Four matrices from the above list, namely , , , and , are described by the controlled rotation gates similarly to those shown in Figure 9, only with different angles , , and in parts (a)–(d), respectively. Three rotations by the angles , and operate on the nonadjacent bit planes 5 and 6, 3 and 4, and 1 and 2, respectively. For example, in binary representation, the numbers and differ by two bits. Therefore, these three rotations should be fulfilled by the rotation gates on nearest-neighbor bit planes. The circuit elements for the other three rotation gates , , and can be described as follows:
- (1)
- By the permutation , the matrix of the rotation on bit planes 5 and 6 is presented as
The permutation is the controlled NOT, that is, The controlled gate for the rotation on bit planes 4 and 6 is shown in Figure 10 in part (b). Therefore, the operation can be fulfilled by using the rotation gate . The circuit element of the operation in Equation (40) is shown in Figure 15.
Figure 15.
The circuit for the 3-qubit rotation on the bit planes 5 and 6 with two controlled NOTs.
- (2)
- By two permutations and , the matrix of the rotation on bit planes 3 and 4 is presented as
Here, is the permutation (0,2). The circuit element of this rotation is shown in Figure 16. The operation is reduced to the rotation gate on the adjacent bit planes and
Figure 16.
The circuit for the 3-qubit rotation on the bit planes 3 and 4 with four controlled NOTs.
- (3)
- By the permutation , the matrix of the rotation on bit planes 1 and 2 is presented as
This operation is fulfilled by using the rotation gate . This controlled gate of the rotation on adjacent bit planes 0 and 2 is shown in Figure 10 in part (a). The permutation is the controlled NOT, The circuit element of the operation in Equation (42) is shown in Figure 17.
Figure 17.
The circuit for the 3-qubit rotation on the bit planes 1 and 2 with two controlled NOTs.
The entire quantum circuit for the 3-qubit QsiHT is shown in Figure 18. Together with seven controlled rotation gates, eight controlled NOTs are used. All these gates are controlled by two bits (qubits).
Figure 18.
The circuit for the 3-qubit strong QsiHT.
The circuit for the inverse 3-qubit strong QsiHT is shown in Figure 19. Here, the rotation matrix denotes the inverse matrix to , that is, , for . There is some symmetry in this scheme (as well as in Figure 18). The change in each controlled NOT from one rotation operation to the next one is accomplished by adding to the bit-plane numbers. Indeed, these changes are . Quantum circuits for -qubit strong QsiHTs can be described similarly for numbers of qubits
Figure 19.
The circuit for the inverse 3-qubit strong QsiHT.
The above comparison of 3-qubit QsiHTs shows how important it is to choose a path that leads to a simplified circuit. The fast path for the 3-qubit QsiHT allows an effective quantum circuit to be built. This circuit is without permutations. The results of simulation of this circuit in Qiskit for the 3-qubit superposition in Example 3 are shown in Table 3 and Table 4. For comparison, the results of using the circuit in Figure 13 with the QsiHT by the fast path are also given in these tables. One can note that the DsiHT with the fast path improves (reduces) the computational errors.
Table 3.
The measured magnitudes of the 3-qubit state by the 3-qubit QsiHTs without channel noise.
Table 4.
The measured magnitudes of the 3-qubit state by the 3-qubit QsiHTs with channel noise.
Example 4.
Now we consider the four-point DsiHT and its inverse transform with the fast path shown in Figure 20. This is a two-stage path with partitioning into three pairs.
Figure 20.
The -point DsiHT using the path with splitting into pairs.
In these two stages of calculation, the rotations are described as
The corresponding circuit elements of these controlled rotation gates are shown in Figure 21. Two gates are with the 0 control bit, and the gate for the second rotation is with the 1 control bit. Connected together, these gates compose the 2-qubit QsiHT.
Figure 21.
The 2-qubit gates with control bit 0 or 1.
It directly follows from this circuit that the inverse 2-qubit DsiHT with the fast path is described by the circuit given in Figure 22. Thus, this circuit can be used to initiate the 2-qubit superposition from the basis state .
Figure 22.
The circuit for the inverse 2-qubit QsiHT with 3 controlled rotation gates.
Compared with the quantum scheme in Figure 7, the above circuit does not require permutations, which makes this circuit more effective. The angular representations of the same signal are different, due to their different paths. For the fast path, this representation is The matrix of the DsiHT with four zero coefficients is equal to
where the diagonal matrix
The new circuit for calculating this 2-qubit superposition is given in Figure 23. The rotation by is . Also, note that the 2-qubit is not the tensor product of qubits; that is, is an entangled superposition.
Figure 23.
The circuit for the initiation of the 2-qubit state .
The results of simulation of this circuit in Qiskit are shown in Table 5 and Table 6. For comparison, the results of using the inverse QsiHT with the strong path (with the circuit in Figure 7) are also given in these tables.
Table 5.
Qiskit-measured magnitudes for 2-qubit state by the 2-qubit QsiHTs without channel noise.
Table 6.
Qiskit-measured magnitudes for 2-qubit state by the 2-qubit QsiHTs with channel noise.
We can also consider the transformation of two 2-qubit superpositions to , by using two 2-qubit QsiHTs.
Example 5.
Consider the same 2-qubit Let the second superposition be Denoting by and the 2-qubit QsiHTs generated by and , respectively, we obtain the 2-qubit , by two steps: Calculating the angular representation of , we obtain
or
The quantum circuit for this 2-qubit transform with five controlled rotation gates is given in Figure 24.
Figure 24.
The circuit for the initiation of the 2-qubit state from .
From the circuits in Figure 11, Figure 12, Figure 18, Figure 19 and Figure 24, it is not difficult to notice a recursive structure of the direct and inverse QsiHTs with the fast path and construct the quantum circuits, to initiate any -qubit superposition by rotations, for . To show this, we describe the 4-qubit QsiHT.
Example 6.
Let be the 4-qubit superposition with real amplitudes . The 4-qubit QsiHT by this generator can be calculated by the quantum circuit given in Figure 25. Fifteen angles are used: the angles of the angular representation of the generator, To simplify the notations in this circuit, all rotations are denoted by Four stages of calculations are shown, with a total of 15 gates with three control bits. In the first stage, the eight rotation gates and the corresponding bit planes are
Figure 25.
The circuit for the 4-qubit QsiHT by fast path #1.
In the second stage, four rotation gates have the last control bit 0,
Two rotation gates with the last two 0 control bits are used in stage 3, and the last rotation with three 0 control bits is used in stage 4:
The circuit for the inverse 4-qubit DsiHT is obtained directly from the above circuit and is shown in Figure 26. All rotations are performed in reverse order, and the notations
= are used, for
Figure 26.
The circuit for the 4-qubit inverse QsiHT by fast path #1.
Let us consider, for example, the 4-qubit superposition with amplitudes of the normalized vector
With the fast path, the angular representation of this vector is the set of angles (rounded to two decimals)
The results of simulation of the above circuit for the 4-qubit superposition are given in Table 7 and Table 8.
Table 7.
Measured magnitudes for the 4-qubit through the DsiHT with the fast path and without channel noise.
Table 8.
Measured magnitudes for the 4-qubit through the DsiHT with the fast path and with channel noise.
Now, we consider the circuit symbols used in [37] for the -fold uniformly controlled 1-qubit gate, which is a full sequence of -fold controlled gates of rotation. Figure 27 shows the equivalent circuit of Figure 25.
Figure 27.
The circuit for the 4-qubit QsiHT by fast path #1 with uniformly controlled gates.
Here, the notation stands for the set of controlled rotations . Also, stands for rotations ; for two rotations ; and . This circuit does not use any permutations. With these notations for the -fold uniformly controlled 1-qubit gates, the quantum scheme in Figure 26 can be presented, as shown in Figure 28.
Figure 28.
The circuit for the inverse 4-qubit QsiHT by fast path #1.
If we combine these two quantum circuits, we obtain a simple circuit for preparing the state from another state . This diagram is shown in Figure 29. Here, in order to not complicate the notations in circuit elements, two parts of the circuits are colored in distinct colors. The angles of rotations in both parts are different. The first part of this circuit uses the set of rotations with 15 angles of the angular representation of the vector The second part of the circuit is composed of the set of inverse rotations with the 15 angles of the angular representation of the vector This circuit requires 30 angles of these two vectors, or only 15 angles of , if the state
Figure 29.
The circuit for transforming one 4-qubit state into another, , by using two 4-qubit QsiHTs by fast path #1.
Then, two controlled gates in the middle of the circuit can be united as one rotation. Therefore, the total number of rotation gates in this circuit with 4-qubit input equals In a general case of -qubits, these two numbers are equal to
It should be noted that the path with partitioning into pairs, which is shown in part (b) in Figure 8, can also be used for the eight-point DsiHT. However, its implementation for the 3-qubit QsiHT is facing difficulties. The first four rotations operate on inputs and outputs on different bit planes. This stage is described by the matrix
where and Also, in stage 2, the fifth rotation uses the inputs numbered 0 and 4, but outputs numbered 0 and 2. The sixth rotation uses the inputs numbered 2 and 6, and outputs numbered 4 and 6. These rotations are not on the same pair of adjacent bit planes. Thus, we assume that this path is not suitable for the 3-qubit QsiHT. However, there are other effective paths for the -qubit QsiHT, which will be shown in the next section. The larger the number of qubits, the more such paths can be found.
7. The DsiHT in the General Form
In this section, we consider the concept of the DsiHT in the general definition introduced by Grigoryan in 2006 [30] and show a fast way to accomplish the state-to-state transformation. Namely, the state transformation will be calculated by using only one QsiHT. This is a one-step process and does not require the use of the inverse DsiHT in the method shown above in Figure 29 for 4-qubit superpositions.
The DisHT by rotations in its original definition consists of the following 22 elementary rotations [16,30]:
Here, the parameter is given and the angle is calculated by
Thus, the angle of rotation is defined from the angular equation The -point DsiHT generated by the vector is defined with a given vector of parameters . It is clear that in this case, when the vector parameter is zero, , the DsiHT is the transform described above in Section 1, Section 2, Section 3, Section 4, Section 5 and Section 6.
As an example, Figure 30 shows the calculation of the eight-point strong DsiHT with the given parameters . The value contains the information of the energy of the generator minus the number . It is assumed that . Thus, . When performing the DsiHT, the angles of rotations are calculated by Equation (55).
Figure 30.
The -point strong DsiHT with vector-parameter .
The DsiHT with the vector parameter is defined similarly for other paths. The vector parameter changes the angular representation of the generator, that is, the set of angles of rotations. Figure 31 shows the diagrams for calculating the four- and eight-point DsiHTs with the fast path in parts (a) and (b), respectively.
Figure 31.
(a) The 4-point DsiHT and (b) the 8-point DsiHT with the paths with splitting into pairs.
Example 7
(2-qubit transformation). Consider two 4-D vectors and after normalization by and The corresponding 2-qubit superpositions are
and
These 2-qubits are entangled. The vector parameter for the DsiHT is taken to be equal to
The norm of this vector equals = . The DsiHT signal-flow graph with the generator and this vector parameter is shown in Figure 32.
Figure 32.
The signal-flow graph of the -point DsiHT with the fast path.
The matrix of the DsiHT is equal to
The angular representation of the generator is equal to The transform of the generator equals
The amplitude of the first state is , not , as in the state Therefore, with the additional 0-controlled phase shift gate
we obtain the following matrix equation:
Thus, with three rotations plus the 0-controlled phase shift gate, the following 2-qubit transformation of states holds:
The corresponding circuit for this 2-qubit transform is shown in Figure 33.
Figure 33.
The circuit for transforming the 2-qubit into the 2-qubit with the fats path.
Table 9 and Table 10 show the results of measurement of the 2-qubit by implementing this circuit in Qiskit.
Table 9.
Measured magnitudes of the 2-qubit state after transferring the state without channel noise.
Table 10.
Measured magnitudes of the 2-qubit state after transferring the state with channel noise.
The same circuit can be used for obtaining the 2-qubit from other 2-qubits. Only the angles of three rotation gates will be changed. For example, the transformation of 2-qubits
requires a new set of angles, , in the circuit in Figure 33.
We can also consider another path for such a 2-qubit QsiHT, which is illustrated in Figure 34. The order of the last two rotations changes, and this results in a change in the rotation angles.
Figure 34.
The second signal-flow graph of the -point DsiHT.
In this case, the matrix of the 2-qubit QsiHT transform is equal to
This matrix has three zero coefficients, and the matrix in Equation (59) has four zero coefficients.
The angular representation of the generator for this transform is equal to The corresponding circuit is shown in Figure 35.
Figure 35.
The second circuit for transforming the 2-qubit into the 2-qubit .
It should be noted for comparison that the existent estimation of rotation gates at a number of [14,15,37] gives us the number 6, for the case. However, some operations, such as a global phase and normalization, were not considered, and these publications do not contain a single illustrative example of implementing the schemes . The circuits in Figure 33 and Figure 35 use one phase shift gate and only three controlled elementary rotations, that is, , and this estimation is valid for integers
Example 8
(3-qubit preparation). Consider two 8-D vectors and after normalizing them by and respectively. These two vectors represent the 3-qubit superpositions and ,
and
Our goal is to obtain the vector from using only one eight-point DsiHT, or 3-qubit QsiHT. Therefore, the vector parameter for the eight-point DsiHT with the generator is taken to be equal to
The norm of this vector is equal to . The angular representation of the vector equals
The matrix of the eight-point DsiHT has 32 zero coefficients and is equal to
The transform of the generator equals
Here, the sign of the first component should be changed, because As in Example 5, we can use the phase shift gate with two control qubits, that is, , and reconstruct the sign of We obtain the given vector :
Thus, with seven rotations plus the 0-controlled phase shift gate, the following 3-qubit transformation holds: The circuit for this transformation is shown in Figure 36. In this figure, the rotations in three stages are defined by
Figure 36.
The circuit for the 3-qubit transformation of states, .
Table 11.
Measured magnitudes of the 3-qubit after state transformation without channel noise.
Table 12.
Measured magnitudes of the 3-qubit after state transformation with channel noise.
When comparing with the known estimation for the case, we obtain the number 14. The circuit of transformation in Figure 34 includes seven elementary rotations, that is,
It should be noted that the quantum circuits in Examples 7 and 8 can be simplified; namely, they can be used without the last phase shift gate For this, the last rotation in DsiHT should be performed as shown in Equations (54) and (55), but with parameter instead of . Then, the angle should be changed by
In the quantum circuits for the 4-qubit state-to-state transformation, which are given in Figure 25, Figure 26, Figure 27 and Figure 28, only angles should be changed according to the vector parameter . This vector changes the angular representation of of the generator. Similarly, with the complete set of -fold uniformly controlled 1-qubit gates on qubits, the quantum circuit can be described for the -qubit state-to-state transformation, when
8. Conclusions
In this work, we describe in detail a new method of state-to-state transformation with only elementary rotations, by using the concept of the DsiHT in its general form. This transformation is generated by the given superposition and the set of angular equations with the given parameters. The analog of this transform, namely, the QsiHT, is described, and the quantum circuits of its implementation are considered. Amplitudes of quantum superpositions are considered real. In the examples with the DsiHT with strong and fast paths, the importance of this characteristic for the transform is shown. The QsiHT with the fast path allows us to build the circuit for -qubit state-to-state transformation with only elementary rotations, each with only one angle. The number of such possible paths increases with the number of qubits, and they can be found, while the best ones can be selected for a specific implementation of the proposed method. The problem of state preparation with complex amplitudes can also be considered and solved by the complex QsiHT [32,36].
It is important to mention the following. We present a “permutation-free method” for transforming one quantum superposition into another. This is our vision for building quantum circuits for multi-qubit gates. If there is a desire (or need) to modify the proposed quantum circuits into circuits with (not controlled) rotations, then the following should be considered. As shown in [14], the -fold uniformly controlled one-qubit gates on -qubits can be implemented by CNOTs controlled by one qubit. Therefore, no more than one-qubit CNOTs are required, or seven CNOTs, for the realization of the 3-qubit QsiHT in the circuit in Figure 36. One controlled 1-qubit phase shift gate is needed only to change the sign of the first amplitude in the transformed superposition . This is the trivial operation of the sign change, , on the first bit. Note that the probability of observing the first state in does not require this operation. The best-known number of CNOTs is [14,37], or eight for the 3-qubit case, and 22 and 52 CNOTs for the 4- and 5-qubit cases, respectively. For 4- and 5-qubit state-to-state transformations, the modified circuits will require no more than and CNOTs, respectively.
Additionally, these quantum circuits are realized and simulated through IBM’s Qiskit and Qiskit’s AerSimulator, respectively. Two different types of quantum simulations are conducted: a noise-free simulation and a simulation with synthetic quantum channel noise. Ideal, noise-free, channel state vector simulations through Qiskit’s AerSimulator default Sampler interface are used to confirm that the proposed quantum circuits properly realize the target amplitudes under near-perfect unitary execution through various different shots. Realistic noisy simulations are performed using Qiskit’s GenericBackendV2 in its default configuration since this backend is able to simulate depolarizing gate noise, thermal relaxation decoherence, and measurement errors. Together, these two simulations help in assessing the robustness of the proposed quantum circuits under near-theoretical conditions and conditions somewhat representative of current quantum hardware.
Author Contributions
Conceptualization, A.M.G.; methodology, A.M.G.; software, A.M.G. and A.A.G.; validation, A.M.G. and A.A.G.; formal analysis, A.M.G., A.A.G. and S.S.A.; investigation, A.M.G.; resources, A.M.G. and A.A.G.; data curation, A.M.G. and A.A.G.; writing—original draft preparation, A.M.G.; writing—review and editing, A.M.G. and A.A.G.; visualization, A.M.G., A.A.G. and S.S.A.; supervision, A.M.G.; project administration, A.M.G.; funding acquisition, A.M.G. 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
The authors agree to share their data publicly, so supporting data will be available.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| DsiHT | Discrete signal-induced heap transform |
| QsiHT | Quantum signal-induced heap transform |
| MSRE | Mean square root error |
| BP | Bit plane |
References
- Deutsch, D. Quantum computational networks. Proc. R. Soc. Lond. A Math. Phys. Sci. 1989, 425, 73–90. [Google Scholar]
- Deutsch, D.; Barenco, A.; Ekert, A. Universality in quantum computation. Proc. R. Soc. Lond. A Math. Phys. Sci. 1995, 449, 669–677. [Google Scholar]
- Barenco, A.; Bennett, C.H.; Cleve, R.; DiVincenzo, D.P.; Margolus, N.; Shor, P.; Sleator, T.; Smolin, J.A.; Weinfurter, H. Elementary gates for quantum computation. Phys. Rev. A 1995, 52, 3457. [Google Scholar] [CrossRef] [PubMed]
- Knill, E. Approximation by Quantum Circuits; LANL Rep. LAUR-95-2225; Los Alamos National Laboratory: Los Alamos, NM, USA, 1995. [Google Scholar]
- Shende, V.V.; Markov, I.L. Quantum circuits for incompletely specified two-qubit operators. Quantum Inf. Comput. 2005, 5, 49–58. [Google Scholar] [CrossRef]
- Bärtschi, A.; Eidenbenz, S. Deterministic preparation of Dicke states. In International Symposium on Fundamentals of Computation Theory; Springer International Publishing: Cham, Switzerland, 2019. [Google Scholar]
- Plesch, M.; Brukner, C. Quantum state preparation with universal gate decompositions. arXiv 2010, arXiv:1003.5760v2. [Google Scholar] [CrossRef]
- Volya, D.; Mishra, P. State preparation on quantum computers via quantum steering. arXiv 2023, arXiv:2302.13518v3. [Google Scholar] [CrossRef]
- Wang, H.; Bochen, T.D.; Cong, J. Quantum state preparation circuit optimization exploiting don’t cares. arXiv 2024, arXiv:2409.01418. [Google Scholar]
- Pinto, D.F.; Friedrich, L.; Maziero, J. Preparing general mixed quantum states on quantum computers. arXiv 2024, arXiv:2402.04212. [Google Scholar] [CrossRef]
- Zhang, X.M.; Li, T.; Yuan, X. Quantum state preparation with optimal circuit depth: Implementations and applications. arXiv 2023, arXiv:2201.11495v4. [Google Scholar] [CrossRef]
- Vartiainen, J.J.; Möttönen, M.; Salomaa, M.M. Efficient decomposition of quantum gates. Phys. Rev. Lett. 2004, 92, 177902. [Google Scholar] [CrossRef]
- Möttönen, M.; Vartiainen, J.J.; Bergholm, V.; Salomaa, M.M. Quantum circuits for general multiqubit gates. Phys. Rev. Lett. 2004, 93, 130502. [Google Scholar] [CrossRef] [PubMed]
- Bergholm, V.; Vartiainen, J.J.; Möttönen, M.; Salomaa, M.M. Quantum circuits with uniformly controlled one-qubit gates. arXiv 2004, arXiv:quant-ph/0410066v2. [Google Scholar] [CrossRef]
- Shende, V.V.; Bullock, S.S.; Markov, I.L. Synthesis of quantum-logic circuits. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2006, 25, 1000–1010. [Google Scholar] [CrossRef]
- Grigoryan, A.M.; Grigoryan, M.M. Brief Notes in Advanced DSP: Fourier Analysis with MATLAB; CRC Press; Taylor and Francis Group: Boca Raton, FL, USA, 2009. [Google Scholar]
- Grigoryan, A.M.; Agaian, S.S. Quantum Image Processing in Practice: A Mathematical Toolbox; Wiley: Hoboken, NJ, USA, 2025. [Google Scholar]
- Nielsen, M.A.; Chuang, I.L. Quantum Computation and Quantum Information; Cambridge University Press: Cambridge, UK, 2000. [Google Scholar]
- Rieffel, E.G.; Polak, W.H. Quantum Computing: A Gentle Introduction; The MIT Press: Cambridge, UK, 2011. [Google Scholar]
- Karafyllidis, I.G. Visualization of the quantum Fourier transform using a quantum computer simulator. Quantum Inf. Process. 2003, 2, 271–288. [Google Scholar] [CrossRef]
- Heo, J.; Kang, M.S.; Hong, C.H.; Yang, H.; Choi, S.G. Discrete quantum Fourier transform using weak cross-Kerr nonlinearity and displacement operator and photon-number-resolving measurement under the decoherence effect. Quantum Inf. Process. 2016, 15, 4955–4971. [Google Scholar] [CrossRef]
- Yoran, N.N.; Short, A. Efficient classical simulation of the approximate quantum Fourier transform. Phys. Rev. A 2007, 76, 042321. [Google Scholar] [CrossRef]
- 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]
- Beauregard, S. Circuit for Shor’s algorithm using 2n + 3 qubits. Quantum Inf. Comput. 2003, 3, 175–185. [Google Scholar] [CrossRef]
- Coppersmith, D. An Approximate Fourier Transform Useful in Quantum Factoring; IBM Research Report RC19642; IBM: Armonk, NY, USA, 1994. [Google Scholar]
- Cheung, D. Using Generalized Quantum Fourier Transforms in Quantum Phase Estimation Algorithms. Master’s Thesis, University of Waterloo, Waterloo, ON, Canada, 2003. [Google Scholar]
- Ahmed, N.; Rao, K.R. Orthogonal Transforms for Digital Signal Processing; Springer: Berlin/Heidelberg, Germany, 1975. [Google Scholar]
- Bracewell, R.N. The Hartley Transform; Oxford University Press: New York, NY, USA, 1986. [Google Scholar]
- Pratt, W.; Chen, W.H.; Welch, L. Slant transform image coding. IEEE Trans. Commun. 1974, 22, 1075–1093. [Google Scholar] [CrossRef]
- Grigoryan, A.M.; Grigoryan, M.M. Nonlinear approach of construction of fast unitary transforms. In Proceedings of the 2006 40th Annual Conference on Information Sciences and Systems, Princeton, NJ, USA, 22–24 March 2006; pp. 1073–1078. [Google Scholar]
- Grigoryan, A.M.; Grigoryan, M.M. Discrete unitary transforms generated by moving waves. In Proceedings of the SPIE Optics + Photonics 2007, Wavelets XII, San Diego, CA, USA, 28–30 August 2007; Volume 6701, p. 670125. [Google Scholar]
- Grigoryan, A.M. Effective methods of QR-decompositions of square complex matrices by fast discrete signal-induced heap transforms. Adv. Linear Algebra Matrix Theory 2023, 12, 87–110. [Google Scholar] [CrossRef]
- Qiskit Development Team. Qiskit: An Open-Source Framework for Quantum Computing (Version 1.3.2) [Computer Software]; IBM Quantum: Poughkeepsie, NY, USA, 2019. [Google Scholar]
- Mykhailova, M. Quantum Programming in Depth Solving Problems with Q# and Qiskit; Manning: Shelt Island, NY, USA, 2025. [Google Scholar]
- Cooley, J.W.; Tukey, J.W. An algorithm for the machine calculation of complex Fourier series. Math. Comput. 1965, 19, 297–301. [Google Scholar] [CrossRef]
- Grigoryan, A.M. New Permutation-Free Quantum Circuits for Implementing 3- and 4-Qubit Unitary Operations. Information 2025, 16, 621. [Google Scholar] [CrossRef]
- Möttönen, M.; Vartiainen, J.J. Decompositions of general quantum gates. arXiv 2005, arXiv:quant-ph/0504100v1. [Google Scholar] [CrossRef]
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. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).