Preprint
Article

This version is not peer-reviewed.

A Novel Approach to State-to-State Transformation in Quantum Computing

A peer-reviewed article of this preprint also exists.

Submitted:

01 July 2025

Posted:

02 July 2025

You are already at the latest version

Abstract
The article presents a new approach to the problem of transforming one quantum state into another. It is shown that a r-qubit superposition |x can be obtained from another r-qubit superposition |y, by using only (2r-1) rotations, each presented by one controlled rotation gate. The quantum superpositions with real amplitudes are considered. The traditional two-stage approach Uy-1Ux:|x→|0⊕r→|y requires twice as many rotations. Here, both transformations to the conventual basis state, Ux: |x→ |0⊕r and Uy: |y→ |0⊕r, use (2r-1) 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 analogue of this transform is described. The main characteristic of the DsiHT is the path of processing the data. It is shown that 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 y-axis. It is shown that the transformation and, in particular, only rotation gates with control qubits are required for initialization of 4-qubits. The quantum circuits are simple and have a recursive form, which makes them easy to implement for arbitrary r-qubit superposition, with r≥2. 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.
Keywords: 
;  ;  

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, the 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]. Analyzing these works, it is important to note the following. The view has been formed that operations on three or more qubits are very 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 very 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 2 ( 2 r 1 ) and CNOTs in number 2 ( 2 r r 1 ) [12,13,14].
The solution to the problem of multi-qubit state-to-state transformation | x | y traditionally lies in the idea of ​​preparing the desired state from the conventional basis state, | 0 r . Here, r 1 is the dimension of the superposition, or the number of qubits it contains. We note the simple method with Givens rotations, x , y ± x 2 + y 2 , 0 . They rotate points inside the unit circle into the interval [ 1,1 ] on the X -axis. In matrix theory, such rotations are used in each step of the QR decomposition of a square matrix, when transforming first columns z of the submutrix into the vector of form of ( ± z , 0 ,   0 , , 0 ) . 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 x and y into the unit vector e 1 = ( ± 1,0 ,   0 , , 0 ) of same dimension,
U x : x e 1         a n d         U y : y e 1 ,
the transformation x y , can be fulfilled by the unitary transform T = U y 1 U x . Both transforms U x and U y are unitary, and U y is the inverse of U y . Moreover, each of them requires ( 2 r 1 ) rotations with almost the same number of CNOTs, when implementing calculations with 1- and 2-qubit gates [8]. If CNOTs operate not on the adjacent, or nearest-neighbor, bit planes (BP), 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 ( 10 / 3 ) 2 r [7].
In this work, we analyze the method of rotations and describe the best and fastest, in our opinion, way 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 U x , instead of two transforms U x and U y in the Eq. 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 done in this direction. We introduce and describe the new concept of the quantum signal-induced heap transform (QsiHT) which is the analogue of the discrete signal-induced heap transform (DsiHT) [16,17]. With this transform, we show
  • How to implement r -qubit state-to-state transformation with real amplitudes, by using only ( 2 r 1 ) elementary rotations, each with only one angle. This number is half as much as the best-known estimation of 2 ( 2 r 1 ) rotations.
  • Visual numerical examples of preparing states x y 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 r -qubit QsiHT and existence of the fast paths for effective computing 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 r -qubit QsiHT.

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 2 × 2 and 4 × 4 unitary real or complex matrices, respectively. Let us find out what it means to apply a gate to one qubit in a 4-qubit superposition. Consider the conventional basis of states. In the general case, a 2-qubit superposition | z = z 0 | 00 + z 1 | 0 1 + z 2 | 10 + z 3 | 11 may be the Kronecker product of two 1-qubits | x = x 0 | 00 + x 1 | 0 1 and | y = y 0 | 00 + y 1 | 0 1 , or maybe not. In the first case, the 2-qubit | z = | x | y in non-entangled, and in the second case the 2-qubit | z is entangled. Let U 2 , V 2 , and U 4 denote some unitary operations, that is, 2 × 2, 2 × 2, and 4 × 4 matrices, respectively. If the operation on the non-entangled 2-qubit, that is, 2-qubit superposition, is described by
U 4 | z = U 2 x , V 2 y = U 2 | x V 2 y = ( U 2 V 2 ) | x | y ,
then, it is the qubit-wise operation, or the operation on two qubits | x and | y of | z . This operation includes the operations on single qubits, too,
U 4 | z = U 2 | x , | y = U 2 | x | y   a n d   U 4 | z = x , V 2 y = x V 2 y .
As an example, consider the unitary matrix U 2 = a , b ; c , d , with the real coefficients and a 2 + b 2 + c 2 + d 2 = 1 . The first operation is described in the matrix form as
U 4 | z = U 2 | x | y = U 2 I 2 | x | y = a b a b c d c d x 0 y 0 x 0 y 1 x 1 y 0 x 1 y 1 .
The circuit element of this gate U 4 = U 2 I 2 is shown in Figure 1 in part (a). It is the local gate on the first qubit. Here, I 2 is the 2 × 2 identity matrix. In the diagram this gate (operator) is connected to the first abstract quantum wire (quantum bit). The circuit element shown in part (b) as the operation on the second qubit. This operation can be written as I 2 U 2 . Note that in general the input, or the 2-qubit superposition | z , of the circuit does not necessarily have to be entangled. Any 2-qubit superposition is assumed as an input.
The 1-qubit gate controlled by one qubit (or bit) are described by the operation of the Kronecker sum of matrices. The circuit elements in Figure 1(c) and (d) are described in the matrix form as follows:
C 1 U 2 = I 2 U 2 = 1 1 a b c d     a n d     C 0 U 2 = U 2 I 2 = a b c d 1 1 .
Note that if a 2-qubit superposition | z is nonentangled, then C 0,1 ( U 2 ) | z may be entangled. These operations are performed on the first or last two amplitudes of | z = | x | y , but not on the qubit | x or | y . The matrices of the local gates U 2 I 2 and I 2 U 2 are more complex than the matrices of the controlled gates C 0 ( U 2 ) and C 1 ( U 2 ) . For instance,
I 2 U 2 = a b c d a b c d = C 1 U 2 C 2 U 2 .

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 the 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 analogue of the 2 r -point discrete Fourier transform, where integer r > 1 . The basis functions of the transform are 2 r 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 N -point discrete signal-induced heap transform (DsiHT) generates the basis by a given signal of length N . This signal is called the generator of the transform [30,31]. The DsiHT with its simple and fast algorithm (for any order N 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 very important and allows us to obtain different QR-decompositions, with diagonal matrices R 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 very good quality images. The generator-signal is denoted by x = ( x 0 , x 1 , x 2 , ,   x N 1 ) . The length of the signal is considered to be a power of 2, N = 2 r ,   r > 1 . 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 ( N 1 ) Givens rotations by angles ϑ k . In this case, the signal-generator is presented in its angular representation
x A x = ϑ 1 , ϑ 2 , ϑ 3 , , ϑ N 1
plus, the norm, | | x | | . The signal is considered real. The DsiHT is a unitary transform, H , and when applying to the generator, it results in the vector ( | | x | | , 0,0 ,   ,   0   ) . For a generator with the unit norm or after normalization, this N -dimensional vector ( 1,0 , 0 ,   ,   0 ) presents the computational basis state | 00 0 = | 0 r . Thus, the following takes place: H x = | 0 r .
To define the DsiHT, ( N 1 ) rotations are performed on the generator and at each stage of the transformation one of the two rotation outputs can be reset to zero. For instance, the generator data can be processed in order (it is the path) x 0 and x 1 , then the updated x 0 with x 2 , the next updated x 0 with x 3 , and so on. The illustration of the calculation with the 8-point generator is given in Figure 2. Here, N = 8 and 2 × 2 transforms T k ,   k = 1 : 7 , are rotations by angles ϑ 1 , ϑ 2 , ϑ 3 ,   ,   ϑ 7 . The DsiHT with this regular path is called the DsiHT with weak wheel-carriage [16,31]. The last value is the updated 7 times value of x 0 with the splash of energy of the generator, as if we were collecting energy, E x = x , in one heap.
The DsiHT can be considered as a two-level unitary transformation. First, the angles ϑ k are calculated from the generator. Then, at each stage k of calculation, the transform T k is applied to the input signal z = ( z 0 , z 1 , z 2 ,   , z N 1 ) in the way (path) as for the generator. For the DsiHT with the week carriage-wheel, this two-level transform is illustrated in Figure 3, for the N = 4 case. The results of calculations are
x ( x 0 3 , 0,0 , 0 ) = ( x , 0,0 , 0 ) ,         z ( z 0 3 , z 1 , z 2 , z 3 ) .

4. The DsiHT with Strong 2-Wheel Carriage

We will consider the concept of the strong DsiHT, or the DsiHT with strong 2-wheel carriage (for more detail, see [16,17]). The path of this DsiHT differs from the path used in the above DsiHT with the week wheel-carriage. As an example, the block-diagram of the 8-point strong DsiHT on its generator is shown in Figure 4. The case of real signals is considered. In this example, on the first step, the angle of the rotation is calculated from the conditions
T 1 x 6 x 7 = x 0 ( 1 ) 0   a n d   | x 0 ( 1 ) | = x 6 2 + x 7 2 .
This transform is the Givens rotation calculated by
T 1 = T φ 1 = cos ϑ 1 sin ϑ 1 sin ϑ 1 cos ϑ 1 ,
with the angle ϑ 1 = arctan x 7 / x 6 . If x 6 = 0 , the angle ϑ 1 = π / 2 , or π / 2 . Thus, the angle of rotation is defined from the angular equation  x 6 sin ϑ 1 + x 7 cos ϑ 1 = 0 .   Then, the first output, x 0 ( 1 ) , of the transform is calculated in Eq. 6. On the next step, the second angle of rotation, T 2 = T ϑ 2 is calculated from the conditions
T 2 x 5 x 0 ( 1 ) = x 0 ( 2 ) 0   a n d   | x 0 ( 2 ) | = x 5 2 + x 0 1 2 .
Thus, ϑ 2 = arctan x 5 / x 0 ( 1 )   . Continuing similar calculations, the last angle ϑ 7 = arctan x 0 ( 6 ) / x 0 of rotation T 7 = T φ 7 is calculated and then the last value x 0 ( 7 ) ,
T 7 x 0 x 0 ( 6 ) = x 0 ( 7 ) 0 .
The value x 0 ( 7 ) contains information of the energy of the generator.
The input 8-point signal z = z 0 , z 1 , z 2 , ,   z 7 is processed by the same seven rotations in the same order (path). This 2-level strong carriage-wheal DsiHT with processing the input signal z with the generator is shown in Figure 5.
In the general case, the N -point DsiHT uses ( N 1 ) basic transformations T ϑ k ,   k = 1 : ( N 1 ) , regardless of the path of the transform. The transform of the signal-generator equals
H : x = x 0 , x 1 , x 2 , , x N 1 y 0 , 0,0 , , 0 ,
where y 0 is equal to plus/minus energy E x = x of the signal. We consider y 0 = x 0 2 + x 1 2 + + x N 1 2 ; if it is negative, the last angle in rotation can be changed as ϑ N 1 = ϑ N 1 + π . Thus, the transformation, as well as the signal-generator, are uniquely determined by the data of E [ x ] and the angles of rotations. In other words, the transformation is decoded into the vector x , ϑ 1 , ϑ 2 ,   , ϑ N 1 . For the signal-generator with norm 1, the angular representation holds, x A x = ϑ 1 , ϑ 2 ,   , ϑ N 1 .
The output is the transform of the input
H z = z 0 , z 1 , z 2 , , z N 2 , z N 1 ,   z 0 = z 0 N 1 .
Note that the above algorithm can be split by two parts. In the first part, all angles ϑ k of rotation can be calculated from the signal-generator. This is about the angular representation of the generator, A x . In the second part, the DsiHT of the input signal z is calculated, H z .
We now describe the DsiHT in the matrix form. For i = 1 : N 1 ,   we denote by R ϑ ; ( i , i + 1 ) the block-diagonal matrix with all 1 in the diagonal and the matrix of rotation R ϑ in the cell i , i + 1 × ( i , i + 1 ) , that is,
R ϑ ; ( i , i + 1 ) = I i R ϑ I N i 2   a n d   R ϑ ; ( 0,1 ) = R ϑ I N 2 .
The matrix R ϑ ; ( i , i + 1 )   describes the rotation on neighbor bit planes i and ( i + 1 ) . For instance, in the N = 4 case, consider the rotations
R ϑ ; ( 0,1 ) = cos ϑ sin ϑ 0 0 sin ϑ cos ϑ 0 0 0 0 1 0 0 0 0 1 = R ϑ 0 0 I 2 = R ϑ I 2   a n d   R R ϑ ; ( 1,2 ) = 1 R ϑ 1 .
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, H N , is written as the multiplication of ( N 1 ) block-diagonal matrices with rotations on adjacent planes,
H N = R ϑ N 1 ; ( 0,1 ) R φ ϑ 2 ; ( 1,2 ) R φ ϑ 3 ; ( 2,3 ) R ϑ 2 ; N 3 , N 2 R ϑ 1 ; N 2 , N 1 .
In the N = 4 case, the 4-point strong DsiHTs with three rotations is written as
H 4 = R ϑ 3 ; ( 0,1 ) R ϑ 2 ; ( 1,2 ) R ϑ 1 ; ( 2,3 ) = R ϑ 3 I 2 1 R ϑ 2 1 I 2 R ϑ 1 .
Now, we consider an example with the 4-point DsiHT generated by a signal x .
Example  1:
Let x be the vector-signal x = ( 1,2 , 2,1 ) with energy E x = 10 and let the input signal be z = ( 1,2 , 4,2 ) with energy E z = 5 . The DsiHT with the generator x has the following matrix:
H 4 = 0.3162 0.6325 0.6325 0.3162 0.9487 0.2108 0.2108 0.1054 0 0.7454 0.5963 0.2981 0 0 0.4472 0.8944 = D 1 2 2 1 9 2 2 1 0 2.5 2 1 0 0 1 2 .
Here, the diagonal matrix D = { 0.3162,0.1054,0.2981,0.4472 } . The angles for this transformation are ϑ 1 , ϑ 2 , ϑ 3 = { 26.5651 ° ,   48.1897 ° ,   71.5651 ° } . One can note that the normalized vector-generator ( 1,2 , 2,1 ) / 10 lies in the first row of this matrix. The transformation is described by the following decomposition by three rotations:
H 4 = R ϑ 3 ; ( 0,1 ) R ϑ 2 ; ( 1,2 ) R ϑ 1 ; ( 2,3 ) = cos ϑ 3 sin ϑ 3 0 0 sin ϑ 3       cos ϑ 3 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 cos ϑ 2 sin ϑ 2 0 0 sin ϑ 2 cos ϑ 2 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 cos ϑ 1 sin ϑ 1 0 0 sin ϑ 1 cos ϑ 1 . ϑ 3 = 71.56 ° ,             ϑ 2 = 48.19 ° ,             ϑ 1 = 26.56 °  
Consider the permutations P = ( 0,3 , 2,1 ) and P = ( 0,1 , 2,3 ) with the matrices
P = 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0   a n d   P = 0 0 0 1 1 0 0 0 0 1 0 0 0 0 1 0 ,
respectively. These two permutations describe the cyclic shifts of a 4-point vector. The following holds for the rotation on the first- and second-bit planes: R ϑ 2 ; ( 1,2 ) = P R ϑ 2 ; ( 2,3 ) P , that is,
R ϑ 2 ; ( 1,2 ) = 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 1 0 0 0 0 1 0 0 0 0 cos ϑ 2 sin ϑ 2 0 0 sin ϑ 2 cos ϑ 2 0 0 0 1 1 0 0 0 0 1 0 0 0 0 1 0 .
Therefore, the matrix of the 4-point DsiHT is described by three controlled gates as
H 4 = R ϑ 3 I 2 P I 2 R ϑ 2 P ( I 2 R ϑ 1 ) .
The transform of the generators is H 4 x = 1,0 , 0,0 , and for the input signal, H 4 z = ( 4.7434,0.5270,1.4907,0 ) . The normalized vectors, x = x / 10 and z = z / 5 can be considered as 2-qubit superpositions
| x = ( | 00 + 2 | 0 1 + 2 | 10 + | 11 ) / 10 ,   a n d
| z = ( | 00 + 2 | 0 1 + 4 | 10 + 2 | 11 ) / 5 .
The 2-qubit QsiHT of these superpositions are H 4 | x = | 00 and
H 4 | z = ( 4.7434 | 00 + 0.5270 | 0 1 + 1.4907 | 10 + 0 | 11 ) / 5 .
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 x = ( 1,2 , 2,1 ) . 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 (MSRE) 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.

5. Qubits 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 x be the 2 r -D unit vector x = ( x 0 , x 1 ,   , x 2 r 1 ) which represents the r -qubit superposition
| x = x 0 | 0 + x 1 | 1 + + x 2 r 1 | 2 r 1 ,       x 0 2 + x 1 2 + + x 2 r 1 2 = 1 ,
Here, the components of the vector are real and complex, and { | k ,   k = 0 : 2 r 1 } is the conventional basis of states. We consider the case when x is real. For the DsiHT generated by this vector, we have
H x ' = H x 0 , x 1 , , x 2 r 1 = 1,0 , , 0 = | 0 r .
In Example 1, such DsiHT is described for the N = 4 case, or the 2-qubit superposition | x = ( | 0 + 2 | 1 + 2 | 2 + | 3 ) / 10 . This unitary transformation H 4 = H is real. Therefore, its inverse transformation is defined by the matrix being transpose to H 4 , that is, H 4 1 = H 4 . We obtain H 4 | 00 = | x . Using the property of the inverse operation (transposition), the matrix H 4 can be composed by the matrices of rotation by angles { ϑ 3 , ϑ 2 , ϑ 1 } as follows:
H 4 = R ϑ 3 ; ( 0,1 ) R ϑ 2 ; ( 1,2 ) R ϑ 1 ; ( 2,3 ) = R ϑ 1 ; ( 2,3 ) R ϑ 2 ; ( 1,2 ) R ϑ 3 ; ( 0,1 ) = R ϑ 1 ; ( 2,3 ) R ϑ 2 ; ( 1,2 ) R ϑ 3 ; ( 0,1 ) = I 2 R ϑ 1 P I 2 R ϑ 2 P R ϑ 3 I 2 .
To initiate the 2-qubit superposition | x from the first basis state | 00 , the quantum circuit of the inverse 2-qubit DsiHT shown in Figure 7 can be used. The angular representation of the signal x (or the superposition | x ) thus allows this superposition to be initiated by three rotations.
In the general case of r > 1 , 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
H 1 | 0 r = H 1,0 , , 0 = x 0 , x 1 , , x 2 r 1 = x = | x .
Example  2:
Consider the 8-D unit vector x = 1,1 , 2 , 2 , 1,3 , 1,2 / 5 and the corresponding 3-qubit superposition
| x = 1 5 1 000 + 1 0 01 + 2 010 2 011 1 100 + 3 101 + 1 110 + 2 111 .
For the 8-point strong DsiHT with this generator, the transform matrix can be written as
H 8 = i = 0 6 R ϑ 7 i ; i , i + 1 = R ϑ 7 ; 0,1 R ϑ 6 ; 1,2 R ϑ 5 ; 2,3 R ϑ 4 ; 3,4 R ϑ 3 ; 4,5 R ϑ 2 ; 5,6 R ϑ 1 ; 6,7 .
Seven rotations by the following angles (in degrees) are used:
ϑ k ; k = 1 : 7 = 78.46 ° , 78.22 ° , 65.35 ° , 62.68 ° , 75.03 ° , 36.69 ° , 63.43 ° .
The transform in the matrix form can be written as
H 8 x = D 1 1 2 2 1 3 1 2 24 1 2 2 1 3 1 2 0 23 2 2 1 3 1 2 0 0 9.5 2 1 3 1 2 0 0 0 7.5 1 3 1 2 0 0 0 0 14 3 1 2 0 0 0 0 0 5 / 3 1 2 0 0 0 0 0 0 2 1 × 1 5 1 1 2 2 1 3 1 2 = 1 0 0 0 0 0 0 0 = | 000 .
Here, the diagonal matrix
D = d i a g 0.2 , 0.0408 , 0.0426 , 0.0957 , 0.1185 , 0.0690 , 0.3586 , 0.4472 .
The matrix of the inverse 8-point DsiHT is calculated by seven rotations in reverse order, as
H 8 = R ϑ 1 ; 6,7 R ϑ 2 ; 5,6 R ϑ 3 ; 4,5 R ϑ 4 ; 3,4 R ϑ 5 ; 2,3 R ϑ 6 ; 1,2 R ϑ 7 ; 0,1
The inverse transform of the first basis state | 000 can be written with the diagonal matrix D as
H 8 1 0 0 0 0 0 0 0 = 1 24 0 0 0 0 0 0 1 1 23 0 0 0 0 0 2 2 2 9.5 0 0 0 0 2 2 2 2 7.5 0 0 0 1 1 1 1 1 14 0 0 3 3 3 3 3 3 5 / 3 0 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 1 D × 1 0 0 0 0 0 0 0 = 1 5 1 1 2 2 1 3 1 2 = | x .
This diagonal matrix D was introduced to better illustrate the process of constructing this matrix H 8 . The first basis function of this transformation is the generator x itself (the first column of the matrix). Each next basis function is result of motion of the previous basis functions (for mode detail, see [31]).
Any r -qubit superposition | x can be obtained from the zero state | 0 r by the unitary inverse heap transform H 2 r generated by x . The DsiHT requires only ( 2 r 1 ) rotations and it is defined by the angular representation of x . Not all of these Givens rotations act on adjacent bit planes, what is 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 generator and input signal are processed, can be chosen in different ways (for more detail, see [17]). Two more example paths are shown in Figure 8. They are paths with partitioning into pairs. The path shown in part (a) resembles the path that is used in the 8-point fast Fourier transform (FFT) with decimation-in-frequency [35]. Only the 8-point DsiHT uses 7 rotations (as butterflies) rather than 4 3 = 12 butterflies in the FFT. These rotations T k are denoted by the circles with numbers k in the figure. The angles ϑ k of these rotations’ changes 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 x .
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 the path that allows for simplification of quantum circuits of the r -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 Eq. 11, only the order of processing the input data and therefore the angles of rotations must be changed accordingly. The r -qubit QsiHT always requires maximum ( 2 r 1 ) rotations on different bit-planes (some of 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 R ϑ 2 ; 1,2 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 8(a), for the 8-point DsiHT, or 3-qubit QsiHT. Then, the example for 2-qubit QsiHT is presented and compared with Example 1.
The notation R ϑ ; ( i , j ) will be used for the rotation R ϑ by the angle ϑ in planes number i   and j , where integer j i { 0,1 , , r 1 } . The 3-qubit DsiHT with the fast path is calculated by seven rotations in the following way. On stage 1, four rotations are used, as shown below with the corresponding bit-planes
R ϑ 1 ; ( 0,1 ) 000 001 ,         R ϑ 2 ; ( 2,3 ) 010 011 ,         R ϑ 3 ; ( 4,5 ) 100 101 ,         R ϑ 4 ; ( 6,7 ) 110 111 .
The circuit elements for these controlled rotation gates are shown on Figure 9.
The second stage uses two rotations, and the last stage uses one rotation, as shown below
R ϑ 5 ; ( 0,2 ) 000 010 , R ϑ 6 ; ( 4,6 ) 100 110 ,   a n d   R ϑ 7 ; ( 0,4 ) 000 100 .
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: 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 | y and the output is H 8 | y . In the case when the input is the first basis state, | y = | 000 , the output of the circuit is the 3-qubit superposition, | x . Thus, to initiate a 3-qubit superposition maximum of seven rotation gates are only 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 x = 1,1 , 2 , 2 , 1,3 , 1,2 and its 3-qubit | x is the same as in Example 2. The angular representation of the generator with the fast path equals to
A x = ϑ 1 , ϑ 2 , , ϑ 7 = 45 ° , 45 ° , 71.5651 ° , 63.4349 ° , 63.4349 ° , 35.2644 ° , 50.7685 ° .
The matrix of this transformation can be written as
H 8 ; f a s t = D 1 1 2 2 1 3 1 2 1 1 0 0 0 0 0 0 2 2 1 1 0 0 0 0 0 0 2 2 0 0 0 0 2 2 3 3 1 3 1 2 0 0 0 0 3 1 0 0 0 0 0 0 1 3 2 4 0 0 0 0 0 0 2 1
where D = d i a g 0.2 , 0.7071 , 0.3162 , 0.3536 , 0.1633 , 0.3162 , 0.1826 , 0.4472 . This matrix has 32 zero coefficients compared to 21 zeros in the matrix H 8 for the strong DsiHT, which is given in Eq. 18.
Now we describe the quantum circuit for the 3-qubit strong DsiHT. This transform is composed of seven rotations
H 8 = R ϑ 7 ; 0,1 R ϑ 6 ; 1,2 R ϑ 5 ; 2,3 R ϑ 4 ; 3,4 R ϑ 3 ; 4,5 R ϑ 2 ; 5,6 R ϑ 1 ; 6,7 .
The angles ϑ k ; k = 1 : 7 are from the set in Eq. 17. The block-diagram of the transform is shown in Figure 14.
Four matrices from the above list, namely R ϑ 7 ; 0,1 , R ϑ 5 ; 2,3 , R ϑ 3 ; 4,5 , and R ϑ 1 ; 6,7 are described by the controlled rotation gates similar to those shown in Figure 9, only with different angles ϑ 7 ,   ϑ 5 , ϑ 3 , and ϑ 1 in parts (a)-(d), respectively. Three rotations by the angles ϑ 2 ,   ϑ 4 , and ϑ 6 operate on the nonadjacent bit-planes 5 and 6, 3 and 4, and 1 and 2, respectively. For example, in binary representation, the numbers 5 = ( 101 ) and 6 = ( 110 ) differ by two bits. Therefore, these three rotations should be fulfilled by the rotation gates on nearest-neighbor bit-planes. The circuit elements for other three rotation gates R ϑ 2 ; 5,6 , R ϑ 4 ; 3,4 , and R ϑ 6 ; 1,2 can be described as follows.
1)
By the permutation ( 4,5 ) , the matrix of the rotation on bit-planes 5 and 6 is presented as
R ϑ 2 ; 5,6 = I 4 X I 2 R ϑ 2 ; 4,6 I 4 X I 2 .
The permutation ( 4,5 ) is the controlled NOT, that is, I 4 X I 2 . The controlled gate for the rotation on bit-planes 4 and 6 is shown in Figure 10 in part (b). Therefore, the operation R ϑ 2 ; 5,6 can be fulfilled by using the rotation gate R ϑ 2 ; 4,6 . The circuit element of the operation in Eq. 19 is shown in Figure 15.
2)
By two permutations ( 2,3 ) and ( 4,6 ) , the matrix of the rotation on bit-planes 3 and 4 is presented as
R ϑ 4 ; 3,4 = I 2 X P 0,2 R ϑ 4 ; 2,6 I 2 X P 0,2 ,         P 0,2 = 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 .
Here, P 0,2 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 2 = ( 010 ) and 6 = ( 110 ) .
3)
By the permutation ( 0,1 ) , the matrix of the rotation on bit-planes 1 and 2 is presented as
R ϑ 6 ; 1,2 = X I 2 I 4 R ϑ 6 ; 0,2 X I 2 I 4 .
This operation is fulfilled by using the rotation gate R ϑ 6 ; 0,2 . This controlled gate of the rotation on adjacent bit-planes 0 and 2 is shown in Figure 10 in part (a). The permutation ( 0,1 ) is the controlled NOT, X I 2 I 4 . The circuit element of the operation in Eq. 25 is shown in Figure 17.
The entire quantum circuit for the 3-qubit QsiHT is shown on 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 R ϑ k denotes the inverse matrix to R ϑ k , that is, R ϑ k = R ϑ k , for k = 1 : 7 . There is some symmetry in this scheme (as well as in Figure 18). The change of each controlled NOT from one rotation operation to the next one is accomplished by adding ( 2,2 ) to the bit-plane numbers. Indeed, these changes are 0,1 ( 2,3 ) ( 4,5 ) ( 6,7 ) . Quantum circuits for r -qubit strong QsiHT can be described similarly for the number of qubits r 4 .
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 the effective quantum circuit to build. This circuit is without permutations. The results of simulation of this circuit in Qiskit for the 3-qubi superposition | x in Example 3 are shown in Table 2. For comparison, the results of using the circuit in Figure 13 with the QsiHT by the fast path are also given in this table. One can note from this table that the DsiHT with the fast path improves (reduces) the computational errors.
Example  4:
Now we consider the 4-point DsiHT and its inverse transform with the fast path shown in Figure 20. This is the two-stage path with partitioning into 3 pairs.
On these two stages of calculation, the rotations are described as
R ϑ 1 ; ( 0,1 ) 00 01 ,       R ϑ 2 ; ( 2,3 ) 10 11 ,     a n d     R ϑ 3 ; ( 0,2 ) 00 10 .
The corresponding circuit elements of these controlled rotation gates are shown in Figure 21. Two gates are with 0-control bit and the gate for the second rotation is with 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 | x from the basis state | 00 .
Compared with the quantum scheme in Figure 7, the above circuit does not require permutations, which makes this circuit more effective. The angular representations A x of the same signal x are different, due to their different paths. For the fast path, this representation is A x = ϑ 1 , ϑ 2 , ϑ 3 = 63.4349 ° , 26.5651 ° , 45 ° . The matrix of the DsiHT is equal to
H 4 ; f a s t = 0.3162 0.6325 0.6325 0.3162 0.8944 0.4472 0 0 0.3162 0.6325 0.6325 0.3162 0 0 0.4472 0.8944 = D 1 2 2 1 2 1 0 0 1 2 2 1 0 0 1 2 ,
where the diagonal matrix D = d i a g 0.3162 , 0.4472 , 0.3162 , 0.4472 . (from: example3_paper.m)
The new circuit for calculating this 2-qubit superposition | x = ( | 0 + 2 | 1 + 2 | 2 + | 3 ) / 10 is given in Figure 23. The rotation by ϑ 3 = 45 ° is R 45 = 1 / 2 [ 1   1 ;   1   1 ] . Also, note that the 2-qubit | x is not the tensor product of qubits, that is, | x is an entangled superposition.
The results of simulation of this circuit in Qiskit are shown in Table 3. For comparison, the results of using the inverse QsiHT with strong path (with the circuit in Figure 7) are also given in this table.
We can also consider the transformation of two 2-qubits superpositions | y to | x , by using two 2-qubit QsiHT.
Example  5:
Consider the same 2-qubit | x = ( | 0 + 2 | 1 + 2 | 2 + | 3 ) / 10 . Let the second superposition be | y = 1,3 , 4,1 / 27 . Denoting by the H y and H x the 2-qubit QsiHTs generated by | y and | x , respectively, we obtain the 2-qubit | x , by two steps: 1 ) H y | y = | 00 ,   a n d   2 ) H x | 00 = | x . Calculating the angular representation of | y ,   A y = θ 1 , θ 2 , θ 3 = { 71.5651 ° ,   14.0362 ° ,   52.5131 ° } , we obtain
| x = H x H y | y = R ϑ 1 ; ( 0,1 ) R ϑ 2 ; ( 2,3 ) R ϑ 3 ; ( 0,2 ) R θ 3 ; ( 0,2 ) R θ 1 ; ( 2,3 ) R θ 1 ; ( 0,1 ) | y ,
or
| x = R ϑ 1 ; ( 0,1 ) R ϑ 2 ; ( 2,3 ) R θ 3 ϑ 3 ; ( 0,2 ) R θ 1 ; ( 2,3 ) R θ 1 ; ( 0,1 ) | y .
The quantum circuit for this 2-qubit transform with five controlled rotation gates is given in Figure 24.
From the circuits in Figures 11,12,18,19, and 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 r -qubit superposition by ( 2 r 1 ) rotations, for r 2 . To show this, we describe the 4-qubit QsiHT.
Example  6:
Let | x be the 4-qubit superposition x 0 | 0 + x 1 | 1 + + x 15 | 15 with real amplitudes x k ,   k = 0 : 15 . The 4-qubit QsiHT by this generator | x can be calculated by the quantum circuit given in Figure 25. Fifteen angles are used; the angles of the angular representation of the generator, A x = ϑ k ,     k = 1 : 15 . To simplify the notations in this circuit, all rotations are denoted by R k = R ϑ k . Four stages of calculations are shown with a total of 15 gates with 3 control bits. On the first stage, eight rotation gates and the corresponding bit-planes are
R ϑ 1 ; ( 0,1 ) 0000 0001 ,         R ϑ 2 ; ( 2,3 ) 0010 0011 ,         R ϑ 3 ; ( 4,5 ) 0100 0101 ,         R ϑ 4 ; ( 6,7 ) 0110 0111 ,
R ϑ 5 ; ( 8,9 ) 1000 1001 ,         R ϑ 6 ; ( 10,11 ) 1010 1011 ,         R ϑ 7 ; ( 12,13 ) 1100 1101 ,         R ϑ 8 ; ( 14,15 ) 1110 1111 .
On the 2nd stage, 4 rotation gates have the last control bit 0,
R ϑ 9 ; ( 0,2 ) 0000 0010 ,         R ϑ 10 ; ( 4,6 ) 0100 0110 ,         R ϑ 11 ; ( 8,10 ) 1000 1010 ,         R ϑ 12 ; ( 12,14 ) 1100 1110 .
Two rotation gates with the last two 0-control bits are used on stage 3, and the last rotation with three control bits 0 on stage 4,
R ϑ 13 ; ( 0,4 ) 0000 0100 ,         R ϑ 14 ; ( 8,12 ) 1000 1100 ,         a n d   R ϑ 15 ; ( 0,8 ) 0000 1000 .
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 R k = R ϑ k are used, for k = 1 : 15 .
Let us consider for example the 4-qubit superposition | x with amplitudes of the normalized vector
x = 1 , 1,2 , 4 , 2 , 1,2 , 6 , 1,1 , 4 , 2,4 , 1,1 , 2 / 111 .
With the fast path, the angular representation of this vector is the set of angles (rounded to two decimals)
A x = 45 ° , 63.43 ° , 26.56 ° , 71.56 ° , 45 ° , 26.56 ° , 14.04 ° , 63.43 ° ,   72.45 ° , 70.53 ° , 72.45 ° , 28.47 ° ,   55.04 ° , 45 ° ,   39.02 ° .
The results of simulation of the above circuit for the 4-qubit superposition | x are given in Table 4.
Now, we consider the circuit symbols used in [37], for the k -fold uniformly controlled 1-qubit gate, which is a full sequence of k -fold controlled gates of rotation. Figure 27 shows the equivalent circuit of Figure 25.
Here, the notation R I stands for the set of controlled rotations R 1 ,   R 2 ,   ,   R 8 . Also, R I I stands for rotations R 9 ,   R 10 ,   R 11 ,   R 12 , and R I I I for two rotations R 13 ,   R 14 , and R I V = R 15 . This circuit does not use any permutations. With these notations for the k -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 | x from another state | y . 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 is used the set of rotations with 15 angles of the angular representation A y of the vector y . The second part of the citcuit is composed by the set of inverse rotations with the 15 angles of the angular representation A x of the vector x . This circuits requires 30 angles of these two vectors, or only 15 angles of A x , if the state | y = | 0000 .
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 to g 4 = 2 8 + 4 + 2 + 1 1 = 2 × 2 4 1 1 = 2 × 2 4 3 = 29 .   In general case of r -qibits, these two numbers are equal to g r = 2 × 2 r 3 .
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 8-point DsiHT. However, its implementation for the 3-qubit QsiHT is facing difficulties. The first four rotations R ϑ k ,   k = 1 : 4 , operate on inputs and outputs on different bit-planes. This stage is described by the matrix
H 8 ; 1 = c 1 0 0 0 s 1 0 0 0 s 1 0 0 0 c 1 0 0 0 0 c 2 0 0 0 s 2 0 0 0 s 2 0 0 0 c 2 0 0 0 0 c 3 0 0 0 s 3 0 0 0 s 3 0 0 0 c 3 0 0 0 0 c 4 0 0 0 s 4 0 0 0 s 4 0 0 0 c 4 ,
where c k = cos ϑ k and s k = sin ϑ k ,   k = 1 : 4 . Also, on stage 2, the 5th rotation uses the inputs number 0 and 4, but outputs number 0 and 2. The 6th rotation uses the inputs number 2 and 6, and outputs number 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 r -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 [16] and show a way to accomplish the state-t-state transformation in a fast way. 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 reverse 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]
T ϑ x y = cos ( ϑ ) x sin ( ϑ ) y a .
Here, the parameter a is given and the angle is calculated by
ϑ = arccos a x 2 + y 2 + arctan x y , a 2 x 2 + y 2 ,
ϑ = arcsin a x , i f y = 0 .
Thus, the angle of rotation is defined from the angular equation  sin ( ϑ ) x + cos ( ϑ ) y = a . The N -point DsiHT generated by the vector x is defined with a given vector of parameters a = { a 1 , a 2 , , a N 1 } . It is clear that in the case, when the vector parameter is zero, a = { 0,0 , , 0 } , 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 8-point strong DsiHT with the given parameters { a 1 , a 2 , , a 7 } . The value x 0 ( 7 ) contains the information of the energy of the generator minus the number a = a 1 2 + a 2 2 + + a 7 2 . It is assumed that a x . Thus, x 0 ( 7 ) = ± x 2 a 2 . When performing the DsiHT, the angles of rotations T k = T ϑ k   ,   k = 1 : 7 ,   are calculated by Eq. 31.
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 4- and 8-point DsiHTs with the fast path in part (a) and (b) respectively.
Example 7 (2-qubit transformation)
Consider two 4-D vectors x = ( 1,2 , 1,3 ) and y = ( 4 , 1,1 , 2 ) after normalization by x = 15 and y = 22 . The corresponding 2-qubit superpositions are
| x = 1 15 0 + 2 1 2 + 3 3
and
| y = 1 22 4 | 0 | 1 + | 2 + 2 | 3 .
Both 2-qubits are entangled. The vector parameter for the DsiHT is taken to be equal to
a = y 1 , y 2 , y 3 = 1 22 1,1 , 2 .
The norm of this vector equals to a = 1 + 1 + 4 / 22   = 6 / 22 = 3 / 11 . The DsiHT signal-flow graph with the generator x and this vector parameter is shown in Figure 32.
The matrix of the DsiHT is equal to
H 4 = 0.2984 0.2664 0.7012 0.5901 0.6661 0.7459 0 0 0.6836 0.6105 0.3061 0.2576 0 0 0.6439 0.7651 ,   det H 4 = 1 .
The angular representation of the generator is equal to A x = ϑ 1 , ϑ 2 , ϑ 3 = 138.2359 ° , 40.0829 ° , 66.4201 ° . The transform of the generator equals to
H 4 x = 1 22 4 , 1,1 , 2 .
The amplitude of the first state | 0 is 4 / 22 not 4 / 22 , as in the state   | y . Therefore, with the additional 0-controlled phase shift gate
P π = 1 0 0 1 ,
we obtain the following matrix equation:
P π I 2 H 4 x = 1 1 1 1 H 4 x = 1 22 4 1 1 2 = y ' .
Thus, with three rotations { R ϑ 1 ; 0,1 , R ϑ 2 ; 2,3 , R ϑ 3 ; ( 0,2 ) } plus the 0-controlled phase shift gate, the following 2-qubit transformation of states holds:
| x = 1 15 0 + 2 1 2 + 3 3 | y = 1 22 4 | 0 | 1 + | 2 + 2 | 3 .
The corresponding circuit for this 2-qubit transform is shown in Figure 33.
Table 5 shows the results of measurement of the 2-qubit | y by implementing this circuit in Qiskit.
The same circuit can be used for obtaining the 2-qubit | y from other 2-qubits. Only the angles of three rotation gates will be changed. For example, the transformation of 2-qubits
| x 1 = 1 46 0 + 5 1 + 2 2 + 4 3 | y = 1 22 4 | 0 | 1 + | 2 + 2 | 3
requires a new set of angles, A x 1 = ϑ 1 , ϑ 2 , ϑ 3 = 52.3485 ° , 33.8996 ° , 21.7498 ° in the circuit in Figure 33.
We also can consider another path for such 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
H 4 = 0.3870 0.7662 0.3925 0.3303 0.4614 0.6426 0.4680 0.3939 0.7983 0 0.4608 0.3878 0 0 0.6439 0.7651 , det H 4 = 1 .
The angular representation of the generator for this transform is equal to A x = ϑ 1 , ϑ 2 , ϑ 3 = 40.0829 ° , 233.9712 ° , 50.0125 ° . The corresponding circuit is shown in Figure 35.
It should be noted for comparison, that the existent estimation of rotation gates in number of μ 1 r = 2 r + 1 2 [14,15,37] gives us the number 6, for the r = 2 case. However, some operations, such as global phase and normalization, were not considered, and these publications do not contain a single illustrative example of implementing the schemes | x | y . The circuits in Figure 33 and Figure 35 use one phase shift gate and only three controlled elementary rotations, that is, μ r = 2 r 1 and this estimation is valid for integers r 2 .
Example 8 (3-qubit preparation)
Consider two 8-D vectors x = ( 1,2 , 1,3 , 1,2 , 3 , 1 ) and y = ( 8 , 1,1 , 2,1 , 2,3 , 1 ) after normalization them by x = 30 and y = 85 , respectively. These two vectors represent the 3-qubit superpositions | x and | y ,
| x = 1 30 0 + 2 1 2 + 3 3 + 4 + 2 5 3 6 7
and
| y = 1 85 8 | 0 | 1 + 2 + 2 3 + 4 2 5 + 3 6 + 7 .
Our goal is to obtain the vector y from x using only one 8-point DsiHT, or 3-qubit QsiHT. Therefore, the vector-parameter for the 8-point DsiHT with the generator | x is taken to be equal to
a = y 1 , y 2 , y 3 , , y ( 7 ) = 1 85 1,1 , 2,1 , 2,3 , 1 .
The norm of this vector is equal to a = 85 64 / 85   = 21 / 85 = 0.4971 . The angular representation of the vector x equals to
A x = ϑ k ; k = 1 : 7 = 131.9727 ° , 49.4953 ° , 148.6630 ° , 29.2633 ° , 63.0605 ° , 87.9558 ° , 48.5902 ° .
The matrix of the 8-point DsiHT has 32 zero coefficients and is equal to
H 8 = 0.2004 0.2228 0.3830 0.4484 0.0229 0.0139 0.6539 0.3664 0.7435 0.6688 0 0 0 0 0 0 0.5962 0.6628 0.2943 0.3445 0 0 0 0 0 0 0.7604 0.6495 0 0 0 0 0.2272 0.2526 0.4343 0.5084 0.0202 0.0123 0.5767 0.3231 0 0 0 0 0.5201 0.8541 0 0 0 0 0 0 0.8536 0.5197 0.0311 0.0174 0 0 0 0 0 0 0.4888 0.8724 .
The transform of the generator x equals to
H 8 x = 1 85 8 , 1,1 , 2,1 , 2,3 , 1 .
Here, the sign of the first component should be changed, because y 0 = 8 . As in Example 5, we can use the phase shift gate P π with two control qubits, that is P π I 6 , and reconstruct the sign of y 0 .   We obtain the given vector y ,
P π I 6 H 8 x = 1 1 I 2 I 4 H 8 x = 1 85 8 1 1 2 1 2 3 1 = y ' .
Thus, with seven rotations plus the 0-controlled phase shift gate, the following 3-qubit transformation holds: | x | y . The circuit for this transformation is shown in Figure 36. In this figure, the rotations in three stages are defined by
R I = R ϑ 1 ; 0,1 , R ϑ 2 ; 2,3 , R ϑ 3 ; 4,5 , R ϑ 4 ; 6,7 ,         R I I = R ϑ 5 ; 0,2 , R ϑ 6 ; 4,6 } ,         R I I I = { R ϑ 7 ; 0,4 .
The results of simulation of this circuit in Qiskit are shown in Table 6.
When comparing with the known estimation μ 1 r = 2 r + 1 2 for the r = 3 case, we obtain the number 14, respectively. The circuit of | x | y transformation in Figure 34 includes seven elementary rotations, that is, μ 3 = 7 . 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 ϑ k ,   k = 1 : 7 , should be changed according to the vector parameter a = y 1 , y 2 , , y 7 . This vector changes the angular representation of A x of the generator. Similarly, with the complete set of k -fold uniformly controlled 1-qubit gates on n qubits, the quantum circuit can be described for the r -qubit state-to-state transformation, when r 2 .

8. Conclusion

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 analogue of this transform, namely the QsiHT, is described, and the quantum circuits of its implementation were considered. Amplitudes of quantum superpositions are considered real. On 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 r -qubit state-to-state transformation with only ( 2 r 1 ) elementary rotations, each with only one angle. The number of such possible paths increases with the number r of qubits and they can be found, and 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 to circuits with (not controlled) rotations, then the following should be considered. As shown in [14], the ( r 1 ) -fold uniformly controlled 1-qubit gates on n -qubits can be implemented by 2 r 1 CNOTs controlled by one qubit. Therefore, no more than 2 r 1 + 2 r 2 + + 2 + 1 = 2 r 1 one-qubit CNOTs are required, or seven CNOTs, for the realization of thee 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 | y . This is the trivial operation of the sign change, y 0 y 0 , on the first bit. Note that the probability p 0 = | y 0 | 2 of observing the first state | 0 in | y does not require this operation. The best-known number of CNOTs is 2 ( 2 r r 1 ) [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 2 4 1 = 15 and 2 5 1 = 31 CNOTs, respectively.

Author Contributions

Conceptualization, A.M.G.; methodology, A.M.G.; software, A.M.G., and A.A.G.; validation, A.M.G., and 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., A.A.G., and S.S.A.; visualization, A.M.G., A.A.G.; 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.

Data Availability Statement

The authors agree to share their data publicity, 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

  1. Deutsch, D. Quantum computational networks. Proc. R. Soc. Lond. A, Math. Phys. Sci. 1989, 425, 73–90. [CrossRef]
  2. Deutsch, D.; Barenco, A.; Ekert, A. Universality in quantum computation. Proc. R. Soc. Lond. A, Math. Phys. Sci. 1995, 449, 669–677. [CrossRef]
  3. Barenco, A.; Bennett, C.H.; Cleve, R.; DiVincenzo, D.P.; et al. Elementary gates for quantum computation. Phys. Rev. A 1995, 52, 3457. [CrossRef]
  4. Knill, E. Approximation by quantum circuits. LANL Rep. LAUR-95-2225, Los Alamos National Laboratory, Los Alamos, NM, 1995.
  5. Shende, V.V.; Markov, I.L. Quantum circuits for incompletely specified two-qubit operators. Quantum Inf. Comput. 2005, 5, 49–58. [CrossRef]
  6. Bärtschi, A., Eidenbenz, S. Deterministic preparation of Dicke states, International Symposium on Fundamentals of Computation Theory, 2019, arXiv:1904.07358. [CrossRef]
  7. Plesch, M.; Brukner, C. Quantum state preparation with universal gate decompositions. arXiv 2010, arXiv:1003.5760v2. [CrossRef]
  8. Volya, D.; Mishra, P. State preparation on quantum computers via quantum steering. arXiv 2023, arXiv:2302.13518v3. [CrossRef]
  9. Wang H.; Bochen, T.D.; Cong, J. Quantum state preparation circuit optimization exploiting don’t cares. arXiv 2024, arXiv:2409.01418. [CrossRef]
  10. Pinto, DF.; Friedrich, L.; Maziero, J. Preparing general mixed quantum states on quantum computers, p. 6, 2024, arXiv preprint, arXiv:2402.04212. [CrossRef]
  11. Zhang, X.M.; Li, T.; Yuan, X. Quantum state preparation with optimal circuit depth: Implementations and applications, p. 24, 2023, arXiv:2201.11495v4. [CrossRef]
  12. Vartiainen, J.J.; Möttönen, M.; Salomaa, M.M. Efficient decomposition of quantum gates. Phys. Rev. Lett. 2004, 92, 177902. [CrossRef]
  13. Möttönen, M.; Vartiainen, J.J.; Bergholm, V.; Salomaa, M.M. Quantum circuits for general multiqubit gates. Phys. Rev. Lett. 2004, 93, 130502. [CrossRef]
  14. 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. [CrossRef]
  15. 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. [CrossRef]
  16. 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.
  17. Grigoryan, A.M.; Agaian, S.S. Quantum Image Processing in Practice: A Mathematical Toolbox; Wiley: Hoboken, NJ, USA, in press.
  18. Nielsen, M.A.; Chuang, I.L. Quantum Computation and Quantum Information; Cambridge University Press: Cambridge, U.K., 2000.
  19. Rieffel, E.G. and Polak, W.H. Quantum computing: A gentle introduction, The MIT Press, Cambridge, 2011.
  20. Karafyllidis, I.G. Visualization of the quantum Fourier transform using a quantum computer simulator. Quantum Inf. Process. 2003, 2, 271–288. [CrossRef]
  21. Heo, J.; Kang, M.S.; Hong, C.H.; et al. 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. [CrossRef]
  22. Yoran, N.N.; Short, A. Efficient classical simulation of the approximate quantum Fourier transform. Phys. Rev. A 2007, 76, 042321. [CrossRef]
  23. Shor, P.W. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM J. Comput. 1997, 26, 1484–1509. [CrossRef]
  24. Beauregard, S. Circuit for Shor’s algorithm using 2n+3 qubits. Quantum Inf. Comput. 2003, 3, 175–185. [CrossRef]
  25. Coppersmith, D. An approximate Fourier transform useful in quantum factoring. IBM Rep. RC19642, 1994.
  26. Cheung, D. Using generalized quantum Fourier transforms in quantum phase estimation algorithms. Master’s Thesis, available online: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.572.9698&rep=rep1&type=pdf (accessed on accessed on 19 June 2025).
  27. Ahmed, N.; Rao, K.R. Orthogonal Transforms for Digital Signal Processing; Springer: Berlin, Heidelberg, Germany, 1975.
  28. Bracewell, R.N. The Hartley Transform; Oxford University Press: New York, NY, USA, 1986.
  29. Pratt, W.; Chen, W.H.; Welch, L. Slant transform image coding. IEEE Transactions on Communications, 1974, 22, 1075–1093.
  30. 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, 2006; pp. 1073–1078.
  31. 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, 2007; Volume 6701, 670125.
  32. 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. [CrossRef]
  33. Qiskit Development Team. Qiskit: An open-source framework for quantum computing (Version 1.3.2) [Computer software]. IBM Quantum, 2019.
  34. Mykhailova, M. Quantum Programming in Depth Solving problems with Q# and Qiskit; Manning, 2025.
  35. Cooley, J.W.; Tukey, J.W. An algorithm for the machine calculation of complex Fourier series. Math. Comput. 1965, 19, 297–301. [CrossRef]
  36. Grigoryan, A.M.; Gomez, A.; Espinoza, I.; Agaian, S.S. Signal-Induced Heap Transform-Based QR-Decomposition and Quantum Circuit for Implementing 3-Qubit Operations. Information 2025, 16, 466. [CrossRef]
  37. Möttönen, M.; Vartiainen, J.J. Decompositions of general quantum gates. arXiv 2005, arXiv:quant-ph/0504100v1. [CrossRef]
Figure 1. The circuit elements of the local gates (a) U 2 I 2 , (b) I 2 U 2 , (c) I 2 U 2 , and (d) U 2 I 2 .
Figure 1. The circuit elements of the local gates (a) U 2 I 2 , (b) I 2 U 2 , (c) I 2 U 2 , and (d) U 2 I 2 .
Preprints 166102 g001
Figure 2. The 8 -point DsiHT by using the regular path.
Figure 2. The 8 -point DsiHT by using the regular path.
Preprints 166102 g002
Figure 3. The diagram of the 4 -point weak 2-wheel carriage DsiHT applied to a signal z = ( z 0 , z 1 , z 2 , z 3 ) .
Figure 3. The diagram of the 4 -point weak 2-wheel carriage DsiHT applied to a signal z = ( z 0 , z 1 , z 2 , z 3 ) .
Preprints 166102 g003
Figure 4. The 8 -point strong DsiHT on the generator.
Figure 4. The 8 -point strong DsiHT on the generator.
Preprints 166102 g004
Figure 5. The 8 -point DsiHT (with the 2-wheel strong carriage).
Figure 5. The 8 -point DsiHT (with the 2-wheel strong carriage).
Preprints 166102 g005
Figure 6. The quantum scheme of the 2-qubit QsiHT with the generator ( 1,2 , 2,1 ) .
Figure 6. The quantum scheme of the 2-qubit QsiHT with the generator ( 1,2 , 2,1 ) .
Preprints 166102 g006
Figure 7. The quantum scheme for initiation of the 2-qubit superposition | x by the 2-qubit inverse QsiHT.
Figure 7. The quantum scheme for initiation of the 2-qubit superposition | x by the 2-qubit inverse QsiHT.
Preprints 166102 g007
Figure 8. The 8 -point DsiHTs using two paths with splitting into pairs.
Figure 8. The 8 -point DsiHTs using two paths with splitting into pairs.
Preprints 166102 g008
Figure 9. Four 3-qubit rotation gates with two control bits.
Figure 9. Four 3-qubit rotation gates with two control bits.
Preprints 166102 g009
Figure 10. Three 3-qubit gates with two control qubits in the second stage.
Figure 10. Three 3-qubit gates with two control qubits in the second stage.
Preprints 166102 g010
Figure 11. The circuit for the 3-qubit QsiHT with seven controlled rotation gates.
Figure 11. The circuit for the 3-qubit QsiHT with seven controlled rotation gates.
Preprints 166102 g011
Figure 12. The circuit for the inverse 3-qubit QsiHT with seven controlled rotation gates.
Figure 12. The circuit for the inverse 3-qubit QsiHT with seven controlled rotation gates.
Preprints 166102 g012
Figure 13. The circuit for the initiation of the 3-qubit state | x .
Figure 13. The circuit for the initiation of the 3-qubit state | x .
Preprints 166102 g013
Figure 14. The circuit for the 3-qubit QsiHT with seven rotations.
Figure 14. The circuit for the 3-qubit QsiHT with seven rotations.
Preprints 166102 g014
Figure 15. The circuit for the 3-qubit rotation on the bit-planes 5 and 6 with two controlled NOTs.
Figure 15. The circuit for the 3-qubit rotation on the bit-planes 5 and 6 with two controlled NOTs.
Preprints 166102 g015
Figure 16. The circuit for the 3-qubit rotation on the bit-planes 3 and 4 with four controlled NOTs.
Figure 16. The circuit for the 3-qubit rotation on the bit-planes 3 and 4 with four controlled NOTs.
Preprints 166102 g016
Figure 17. The circuit for the 3-qubit rotation on the bit-planes 1 and 2 with two controlled NOTs.
Figure 17. The circuit for the 3-qubit rotation on the bit-planes 1 and 2 with two controlled NOTs.
Preprints 166102 g017
Figure 18. The circuit for the 3-qubit strong QsiHT.
Figure 18. The circuit for the 3-qubit strong QsiHT.
Preprints 166102 g018
Figure 19. The circuit for the inverse 3-qubit strong QsiHT.
Figure 19. The circuit for the inverse 3-qubit strong QsiHT.
Preprints 166102 g019
Figure 20. The 4 -point DsiHT using the path with splitting into pairs.
Figure 20. The 4 -point DsiHT using the path with splitting into pairs.
Preprints 166102 g020
Figure 21. The 2-qubit gates with control bit 0 or 1.
Figure 21. The 2-qubit gates with control bit 0 or 1.
Preprints 166102 g021
Figure 22. The circuit for the inverse 2-qubit QsiHT with 3 controlled rotation gates.
Figure 22. The circuit for the inverse 2-qubit QsiHT with 3 controlled rotation gates.
Preprints 166102 g022
Figure 23. The circuit for the initiation of the 2-qubit state | x = ( 1,2 , 2,1 ) / 10 .
Figure 23. The circuit for the initiation of the 2-qubit state | x = ( 1,2 , 2,1 ) / 10 .
Preprints 166102 g023
Figure 24. The circuit for the initiation of the 2-qubit state | x from | y .
Figure 24. The circuit for the initiation of the 2-qubit state | x from | y .
Preprints 166102 g024
Figure 25. The circuit for the 4-qubit QsiHT by the fast path #1.
Figure 25. The circuit for the 4-qubit QsiHT by the fast path #1.
Preprints 166102 g025
Figure 26. The circuit for the 4-qubit inverse QsiHT by the fast path #1. (from: example7_paper.m).
Figure 26. The circuit for the 4-qubit inverse QsiHT by the fast path #1. (from: example7_paper.m).
Preprints 166102 g026
Figure 27. The circuit for the 4-qubit QsiHT by the fast path #1.
Figure 27. The circuit for the 4-qubit QsiHT by the fast path #1.
Preprints 166102 g027
Figure 28. The circuit for the inverse 4-qubit QsiHT by the fast path #1.
Figure 28. The circuit for the inverse 4-qubit QsiHT by the fast path #1.
Preprints 166102 g028
Figure 29. The circuit for transforming one 4-qubit state into another, | y | x , by using two 4-qubit QsiHTs by the fast path #1.
Figure 29. The circuit for transforming one 4-qubit state into another, | y | x , by using two 4-qubit QsiHTs by the fast path #1.
Preprints 166102 g029
Figure 30. The 8 -point strong DsiHT with vector-parameter a .
Figure 30. The 8 -point strong DsiHT with vector-parameter a .
Preprints 166102 g030
Figure 31. (a) The 4-point DsiHT and (b) the 8-point DsiHT with the paths with splitting into pairs.
Figure 31. (a) The 4-point DsiHT and (b) the 8-point DsiHT with the paths with splitting into pairs.
Preprints 166102 g031
Figure 32. The signal-flow graph of the 4 -point DsiHT with the fast path.
Figure 32. The signal-flow graph of the 4 -point DsiHT with the fast path.
Preprints 166102 g032
Figure 33. The circuit for transforming the 2-qubit | x into the 2-qubit | y .
Figure 33. The circuit for transforming the 2-qubit | x into the 2-qubit | y .
Preprints 166102 g033
Figure 34. The second signal-flow graph of the 4 -point DsiHT.
Figure 34. The second signal-flow graph of the 4 -point DsiHT.
Preprints 166102 g034
Figure 35. The circuit for transforming the 2-qubit | x into the 2-qubit | y .
Figure 35. The circuit for transforming the 2-qubit | x into the 2-qubit | y .
Preprints 166102 g035
Figure 36. The circuit for the 3-qubit transformation of states, | x | y .
Figure 36. The circuit for the 3-qubit transformation of states, | x | y .
Preprints 166102 g036
Table 1. The measured magnitudes for 2-qubit superposition H 4 | z by the 2-qubit QsiHT.
Table 1. The measured magnitudes for 2-qubit superposition H 4 | z by the 2-qubit QsiHT.
Basis
States
Magnitudes
Theoretical 500 shots 1,000 shots 10,000 shots 100,000 shots
00


0.9487


0.9497


0.9602


0.9479


0.9494


01


0.1054


0.1095


0.0837


0.1034


0.1045


10


0.2981


0.2933


0.2665


0.3011


0.2962


MSRE 1.21 × 10 3


9.55 × 10 3


7.75 × 10 4


5.96 × 10 4


Table 2. The measured magnitudes of the 3-qubit state | x by the 3-qubit QsiHTs.
Table 2. The measured magnitudes of the 3-qubit state | x by the 3-qubit QsiHTs.
Basis
States
Magnitudes
Theoretical Inverse strong QsiHT Inverse fast QsiHT
10,000 shots 100,000 shots 10,000 shots 100,000 shots
000 0.2000 0.1969 0.2005 0.2004 0.1989
001 0.2000 0.1978 0.1995 0.2008 0.2019


















110 0.2000 0.2012 0.2007 0.2003 0.1995
111 0.4000 0.4012 0.3986 0.3982 0.3994
MSRE 4.24 × 10 4


2.56 × 10 4


4.04 × 10 4


1.92 × 10 4


Table 3. Qiskit measured magnitudes for 2-qubit state | x by the 2-qubit QsiHTs.
Table 3. Qiskit measured magnitudes for 2-qubit state | x by the 2-qubit QsiHTs.
Basis
States
Magnitudes of | y


Theoretical Inverse strong QsiHT Inverse fast QsiHT
10,000 shots 100,000 shots 10,000 shots 100,000 shots
00


0.3162


0.3211


0.3169


0.3135


0.3188


01


0.6325


0.6288


0.6309


0.6356


0.6320


10


0.6325


0.6333


0.6337


0.6298


0.6315


11


0.3162


0.3167


0.3163


0.3178


0.3164


MSRE 1.42 × 10 3


6.42 × 10 4


1.39 × 10 3


5.31 × 10 4


Table 4. Measured magnitudes for the 4-qubit | x through the DsiHT with the fast path.
Table 4. Measured magnitudes for the 4-qubit | x through the DsiHT with the fast path.
Basis
States
Magnitudes
Theoretical 500 shots 1,000 shots 10,000 shots 100,000 shots
0000


0.0949


0.0775


0.0943


0.0936 0.0950


000


1
0.0949


0.1095


0.0872


0.0976


0.0963




















1110


0.0949


0.1225


0.0894


0.0970


0.0952


1111


0.1898


0.1844


0.1913


0.1891


0.1887


MSRE 1.83 × 10 3


5.97 × 10 4


1.75 × 10 4


6.56 × 10 5


Table 5. Measured magnitudes of the 2-qubit state | y after transferring the state | x .
Table 5. Measured magnitudes of the 2-qubit state | y after transferring the state | x .
Basis
States
Magnitudes of | y


Theoretical 1,000 shots 10,000 shots 100,000 shots
00


0.8528


0.8555


0.8518


0.8531


01


0.2132


0.2000


0.2128


0.2128


10


0.2132


0.2121


0.2145


0.2149


11


0.4264


0.4278


0.4278


0.4252


MSRE 7.56 × 10 3


1.42 × 10 3


6.42 × 10 4


Table 6. Measured magnitudes of the 3-qubit after state transformation | x | y .
Table 6. Measured magnitudes of the 3-qubit after state transformation | x | y .
Basis
States
Magnitudes of | y


Theoretical 1,000 shots 10,000 shots 100,000 shots
000


0.8667


0.8672


0.8682


0.8678


001


0.1085


0.1000


0.1105


0.1101

















110


0.3254


0.3271


0.3239


0.3262


111


0.1085


0.1048


0.1086


0.1086


MSRE 1.33 × 10 3


3.44 × 10 4


1.60 × 10 4


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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2025 MDPI (Basel, Switzerland) unless otherwise stated