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.
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 2
2 transforms, which can be linear or nonlinear [
30]. In this work, we consider 2
2 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 2
2 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.
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
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
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.
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 matricesrespectively. 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. 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.
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
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
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 2
2 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.
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.
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.
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.
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 The matrix of this transformation can be written aswhere 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.
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.
- (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
- (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.
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).
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
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.
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. 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. 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 .
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 towhere 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. 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. 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 obtainor The quantum circuit for this 2-qubit transform with five controlled rotation gates is given in Figure 24. 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 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 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.
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.
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.
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
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 2
2 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).
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.
Example 7 (2-qubit transformation)
. Consider two 4-D vectors and after normalization by and The corresponding 2-qubit superpositions areandThese 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. 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. Table 9 and Table 10 show the results of measurement of the 2-qubit by implementing this circuit in Qiskit. 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-qubitsrequires 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.
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.
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 ,andOur 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 The results of simulation of this circuit in Qiskit are shown in Table 11 and Table 12. 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