Next Article in Journal
Trust in Generative AI Tools: A Comparative Study of Higher Education Students, Teachers, and Researchers
Previous Article in Journal
YOLO-MFD: Object Detection for Multi-Scenario Fires
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

New Permutation-Free Quantum Circuits for Implementing 3- and 4-Qubit Unitary Operations

by
Artyom M. Grigoryan
Department of Electrical and Computer Engineering, The University of Texas at San Antonio, San Antonio, TX 78249, USA
Information 2025, 16(7), 621; https://doi.org/10.3390/info16070621
Submission received: 10 June 2025 / Revised: 6 July 2025 / Accepted: 15 July 2025 / Published: 21 July 2025

Abstract

The article presents the quantum signal-induced heap transform (QsiHT) method of the QR-decomposition of multi-qubit operations. This transform can be generated by a given signal, by using different paths, or orders, of processing the data. We propose using the concept of the fast path of calculation of the QsiHT and applying such transforms on each stage of the matrix decomposition. This allows us to build quantum circuits for multi-qubit unitary operation without permutations. Unitary operations with real and complex matrices are considered. The cases of 3- and 4-qubit operations are described in detail with quantum circuits. These circuits use a maximum of 28 and 120 Givens rotation gates for 3- and 4-qubit real operations, respectively. All rotations are performing only on adjacent bit planes. For complex unitary operation, each of the Givens gates is used in pairs with two Z-rotation gates. These two types of rotations and the global phase gate are the universal gate set for multi-qubit operations. The presented approach can be used for implementing quantum circuits for n -qubits when n 2 , with a maximum of ( 4 n / 2 2 n 1 ) Givens rotations and no permutations.

Graphical Abstract

1. Introduction

In recent years, increased work has been done but much remains to be done in the development of existing and novel methods of data processing in new computers named quantum computers. Quantum circuits are complex, since all operations, or gates, should be invertible (unitary), and all calculations should be performed on normalized data, which are called quantum superpositions [1,2]. Another feature is the impossibility of measuring the quantum states during calculation in circuits without destroying the complete quantum superposition. Quantum states change instantly as soon as they are observed. In other words, they are well protected from our interference. So even simple tasks require hundreds of thousands of runs of the same quantum circuit to observe reliable data for computing. All that tells us that we need to develop effective and, most importantly, simple methods of building quantum circuits. Many simple one- and two-qubit gates are well known in quantum computation [3,4,5]. However, how to use them in the most effective way to build universal codes, or circuits, to compute multi-qubit quantum operations is still an open problem to be solved.
Multi-qubit operations, or gates, in quantum computation are described by unitary matrices, real or complex. It means that if we build the circuit for multi-qubit operation A , it is not difficult to obtain the circuit for inverse operation A 1 . This is a good and desirable property for the transform. However, the requirement for operation to be unitary makes it difficult to implement many important operations. For instance, in engineering, we mention the operation of linear convolution, correlation, linear filtration, optimal or Wiener filtration, and signal and image restoration [6,7].
Studying different methods of matrix decomposition, such as the Gramm–Schmidt process [8], the method of Householder transformations [9,10], cosine-sine decomposition (CSD) [11], and QR-decomposition by Givens rotations [12,13], we choose QR-decomposition. This decomposition, or the factorization for the case of unitary matrices, has been studied and used by many researchers. To build quantum circuits for multi-qubit operations and state preparations, this decomposition has been combined with different permutations [14,15,16,17,18,19,20]. The purpose of such additional permutations, including CNOT operations and Gray code-based permutations, is the requirement to fulfil the computations only on adjacent bit planes (BP), that is, which differ by only one bit [21,22,23]. The presence of permutations and CNOT gates is associated with multiple switching of information flows from one set of qubits to others. Even for a small number of qubits, for example, 4-qubit operations, the number of only CNOT operations is estimated as 100 . Many quantum circuits are populated with different switches. The possibility of removing all such permutations from the circuits was noted in our work devoted to 3-qubit operations [24]. Permutations are not mandatory elements in a universal set of gates, they are not needed at all for multi-qubit operations. We mention several quantum circuits that are used to compute the n -qubit quantum Fourier transform (QFT) [25,26]. It is a complicated operation, but implementation of this operation by the Cooley–Tookey algorithm [27,28] and paired-transform based method [29] do not include the CNOT gates in the circuits of the n -qubit QFT. In connection with what has been said, we present Table 1 with CNOT counts in the known circuits for n -qubit operations (see Table 1 in [30] (p. 1008)). This table includes for comparison, the known QR decomposition, cosine-sine decomposition (CSD), and quantum Shannon decomposition (QSD).
This work is the continuation of the above mentioned publication that describes in detail only the case of 3-qubit operations with real unitary matrices, not complex. Here, we consider the general case of 3- and 4-qubit operations. The QR-decomposition and circuits for computing these operations are described in detail. The QR-decomposition is based on the concept of the discrete-time signal-induced heap transform (DsiHT) [33,34]. Namely, we consider its particular case, when the transform is generated (induced) by one signal, not several. This transform is used in the QR decomposition with a special property. On each stage of the decomposition, we introduce the roadmap of the transform. It shows a path, the “fast path,” for the DsiHT to operate exclusively on adjacent bit-planes, which ensures optimization of the quantum circuit layout. That allows us to entirely eliminate CNOT gates and Gray-code permutations from the circuits.
The DsiHT is generated by a given signal, and there are many ways to compose this transform by using the path of the transform. The path is an especially important characteristic of the transform, and from the very beginning when this transform was presented (Grigoryan [35]), we have repeatedly drawn attention to the choice of this path. It was shown, for example, that the right choice of such a path may significantly reduce the number of zeros of the unitary matrix Q in the decomposition A = Q R for a square matrix, in the general case when A is not necessarily unitary. That reduces the number of multiplications in the matrix calculation. Thus, the traditional method of processing data in the natural order 0 , 1 , 2 ,   ,   ( N 1 ) is not the best way (or path) of processing data in QR decomposition of an N × N matrix A . In quantum computation, we only consider the case when N is a power of 2, N = 2 r . The quantum analogue of the N -point DsiHT is the r -qubit quantum signal-induced transform (QsiHT) [36].
The key contributions of this work are:
  • New effective roadmaps or “fast paths” for all fifteen DsiHTs in the QR decomposition of a 4-qubit operation, real or complex. No additional permutations with Gray codes or CNOT gates are required in the decomposition.
  • For any 3- or 4-qubit operation (circuit), the universal set of gates consists only of Y - and Z -rotations, plus the phase gate.
  • For quantum operations with unitary real matrices, only Givens rotations are required.
  • A universal and transparent circuit for quantum 3- and 4-qubit operations.
  • The quantum circuit with a maximum of 120 controlled rotation gates and depth of 54 for 4-qubit real operation. The circuit for complex 4-qubit operation requires a maximum of 120   Y -rotation gates, 240   Z -rotation gates, and no permutations.
  • A simple circuit for generating any 3- and 4-qubit operation with a real or complex unitary matrix by using an encoding table.
  • A general method for constructing circuits for multi-qubit operations with maximum of ( 4 n / 2 2 n 1 )   Y -rotation gates, ( 4 n 2 n )   Z -rotation gates and no permutations, for n > 1 qubits.
The rest of the paper is organized as follows. In Section 2, the concept of the DsiHT is briefly discussed. The roadmaps for the 3-qubit QsiHT is presented. The complex DsiHT is considered in Section 3. Section 4 describes the method of DsiHT-based QR decomposition on the example with an 8 × 8 matrix, A = Q R . In Section 5 and Section 6, the cases of 2- and 3-qubit quantum signal-induced heap transform (QsiHT) are considered in detail with two encoding tables and quantum circuits for complex 2- and 3-qubit operations. The quantum circuit of a 4-qubit unitary operation is presented in Section 7. All roadmaps for 15 QsiHTs in the QR-decompisition of the 4-qubit operation (complex and real) are presented in Appendix A.

2. The Concept of the DsiHT

The DsiHT is the unitary transformation that is induced, or generated, by one or more signals [37]. The illustration of this transform when the transform is generated by a single signal x is shown in Figure 1. A signal-generator is shown in Figure 1a. The input and output of the generated transform are shown in Figure 1b and Figure 1c, respectively.
To compose such a transform, different ways of processing the components of the generator can be used. We consider the case when the transform is composed sequentially by the series of 2-point operations. At each stage of composition, only two components x n and x k of signal x will be processed, for instance, the components number n = 3 and k = 7 . These components can also be renewed during the calculations as well. By using these components, a 2-point operation, T n , k , will be generated, and then, it will be applied on component number n and k of the input signal z , as shown in Figure 1. Thus, it is a two-level transformation. On the first level, the transforms T n , k are generated, and on the second level, they are applied on the input signal. Input signal z can also be processed after generating the entire transform, DsiHT. We consider the simple case, when each 2-point transformation T = T n , k moves the energy of the input to one of its components. In other words, the transformation is defined as
T :   x , y ± x 2 + y 2 , 0
or
T :   x , y 0 , ± x 2 + y 2 .    
Here, the energy of the input ( x , y ) is defined as x 2 + y 2 or | x | 2 + | y | 2 for the complex input.
First, we consider real transformations defined by the Given rotation, T = R ϑ , which is described in the matrix form as
R ϑ x y = cos ϑ sin ϑ sin ϑ cos ϑ x y = ± x 2 + y 2 0 .
The angle is calculated by ϑ = arctan y / x , and ϑ = ± π / 2 if x = 0 . The transformation in Equation (2) is described by
R ϑ x y = cos ϑ sin ϑ sin ϑ cos ϑ x y = 0 ± x 2 + y 2 , ϑ = atan x y .
Because of the property atan ( x / y ) +   atan ( y / x ) = π / 2 , after changing ϑ as ϑ + π / 2 , the Givens rotation in Equation (3) will result in the transform in Equation (4).
In this section, we describe the DsiHTs composed of the Givens rotations and apply them to real signals. The case of complex transformations T and DsiHT is considered in Section 3. The main characteristic of the DsiHT is the path, that is, the order in which it is assembled from the basic 2-point rotations with one parameter (the angle) each. The angles are calculated from the generator. The set of these angles is called the angular representation of the generator and is denoted by A x [33,37]. In quantum computation, it is desired to compose operations only on adjacent bit planes to avoid additional permutations. Therefore, to apply the concept of the DsiHT in quantum computation and compose the quantum analog of this transform, the path of the transform is chosen as one that allows the composition of the transform by the rotations only on adjacent bit planes [24].
As an example, we consider the 8-point DsiHTs, which use two different paths. Figure 2 shows the so-called road map of the 8-point DsiHT and the quantum circuit of the analogue 3-qubit QsiHT.
The road map is the table with the 8-point generator in the first column, x = x 0 , x 1 ,   ,   x 7 , eight bit-planes in the second column, and the output of the transform in the last column. The transformation over the same generator moves the entire energy of x to the first component, resulting in the following signal:
H x : x x 0 ( 3 ) , 0 , 0 , , 0 , x 0 ( 3 ) = ± x 0 2 + x 1 2 + + x 7 2 .
The road map shows seven operations, or butterflies, with two inputs and two outputs. The colors in circles for outputs 0 are in red. The blue color shows the output with the energy of the input. Nodes with blue and next to the right black color on the same bit plane are considered connected. Therefore, the connecting horizontal lines between them are not shown. All butterflies are numbered from top to bottom and left to right. On the first stage, the first four butterflies operate on the bit-planes (0,1), (2,3), (4,5), and (6,7). In the quantum circuits these four operations are described by four gates of rotation controlled by the first two qubits. The corresponding angles of rotations, ϑ k ,   k = 1 : 4 , are calculated as shown in Equation (3). On the second stage of calculation of the DsiHT, two butterflies are used on the renewed components of the generators, namely component numbers 0, 2, and 4, 6. The corresponding controlled gates of rotations R ϑ 5 and R ϑ 6 are shown in the circuit. These gates are controlled by qubit numbers 1 and 3. The last butterfly operates on the renewed component numbers 0 and 4. As a result the energy of the generator will be moved to the first output. It is the heap of the transform (shown in yellow circle) and is denoted by x 0 ( 3 ) because this component was renewed three times. This butterfly is described by the rotation gate R ϑ 7 controlled by the last two qubits. The depth of this circuit is equal to 3, that is, to the number of stages composing the DsiHT. The circuit does not have permutations, only seven gates of rotation on adjacent bit-planes. Seven angles ϑ k ,   k = 1 : 7 , make up the angular representation of the generator x . These angles plus the path are the key of the DsiHT. This transformation can be written in the matrix form as follows:
H 8 = H 8 ; 1 = R ϑ 7 ; 0 , 4 R ϑ 6 ; 4 , 6 R ϑ 5 ; 0 , 2 R ϑ 4 ; 6 , 7 R ϑ 3 ; 4 , 5 R ϑ 2 ; 2 , 3 R ϑ 1 ; 0 , 1 .
Here, the notation R ϑ ; i , j is used for the controlled rotation gate that operates on the biplanes i and j , i j .
Now, we consider the 8-point DsiHT generated by the same generator x but with another path. Figure 3 shows the road map of the new 8-point DsiHT and the corresponding quantum circuit of the 3-qubit QsiHT. Here, we also have seven butterflies, or rotations, and all operates on adjacent bit-planes. This 3-qubit QsiHT can be written in the matrix form as
H 8 = H 8 ; 2 = R ϑ 7 ; 0 , 4 R ϑ 6 ; 0 , 1 R ϑ 5 ; 4 , 6 R ϑ 4 ; 1 , 3 R ϑ 4 ; 6 , 7 R ϑ 3 ; 4 , 5 R ϑ 1 ; 0 , 2 .
In comparison with the road map in Figure 2, the 3-qubit DsiHT is calculated in five stages. It means that the quantum circuit has a depth of 5. Therefore, the circuit in Figure 2 with depth 3 can be considered more effective than the second circuit. In the future, we will also give preference to road maps that provide minimal computational depth.
Example 1.
Consider the generator x = 1 , 2 , 4 , 2 ,   3 , 1 , 2 , 1 . The matrix of the 8-point DsiHT with the road map in Figure 2 can be written as
H 8 ; 1 = D 1 1 2 4 2 3 1 2 1 2 1 0 0 0 0 0 0 2 4 2 1 0 0 0 0 0 0 1 2 0 0 0 0 3 6 12 6 15 5 10 5 0 0 0 0 1 3 0 0 0 0 0 0 3 1 4 2 0 0 0 0 0 0 1 2        
Here, the diagonal matrix is
D 1 = d i a g 0.1581 , 0.4472 , 0.2 , 0.4472 , 0.0408 , 0.3162 , 0.1826 , 0.4472 .
The set of angles of rotation gates is equal to (in degrees)
A x = 63.4349 ° , 26.5651 ° , 18.4349 ° , 206.5651 ° , 63.4349 ° , 35.2644 ° , 37.7612 ° .    
Now, we consider the 8-point DsiHT with the road map given in Figure 3. The matrix of this transform is equal to
H 8 ; 2 = D 2 1 2 4 2 3 1 2 1 4 17 16 17 0 0 0 0 4 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 3 6 12 6 15 5 10 5 0 0 0 0 1 3 0 0 0 0 0 0 3 1 4 2 0 0 0 0 0 0 1 2                          
with the diagonal matrix
D 2 = d i a g 0.1581 , 0.0343 , 0.2425 , 0.7071 , 0.0408 , 0.3162 , 0.1826 , 0.4472 .
The angular representation of the signal is the set of angles
A x = 75.9638 ° , 18.4349 ° ,   206.5651 ° , 45 ° , 35.2644 ° , 34.4499 ° , 37.7612 ° .
Both matrices of the DsiHT have 32 zero coefficients, they are unitary and
H 8 ; 1 x = H 8 ; 2 x = x ,   0 , 0 , , 0 = 6.3246 ,   0 , 0 , , 0 ,
and if we normalize the generator, x = x / x , then H 8 ; 1 x = H 8 ; 2 x = 1 ,   0 , 0 , , 0 . It means that the 3-qubit superposition
| x = x 0 | 000 + x 1 | 001 + x 2 | 010 + + x 7 | 111
will be transformed to the first basis state H 8 : | x | 000 . The 3-qubit can be prepared by both transforms H 8 = H 8 ; 1 and H 8 ; 2 , as | x = H 8 | 000 . Here, H 8 = H 8 1 denotes the transpose matrix. It follows from Equation (6), that the preparation of | x can be accomplished by the 3-qubit operation described as
H 8 = R ϑ 1 ; 0 , 1 R ϑ 2 ; 2 , 3 R ϑ 3 ; 4 , 5 R ϑ 4 ; 6 , 7 R ϑ 5 ; 0 , 2 R ϑ 6 ; 4 , 6 R ϑ 7 ; 0 , 4 .
Here, we use the fact that R ϑ = R ϑ 1 = R ϑ for rotation gate R ϑ . Figure 4 shows the quantum circuit for 3-qubit state preparation when using the first road map of the DsiHT.

3. Complex QsiHT

In this section, we describe the general case of the 2 n -point DsiHT and its quantum analogue, n -qubit QsiHT, generated by complex signals, or n -qubit superposition. As shown in [34], there are different complex matrices 2 × 2 that can be used as the basis elements to compose the N -point DsiHT. First, we consider the following 2 × 2 matrix:
M = 1 x 0 2 + | x 1 | 2 x ¯ 0 x ¯ 1 x 1 x ¯ 0 | x 0 | | x 0 | .
Numbers x 0 and x 1 are complex. One coefficient of this matrix is a real number. The matrix M is unitary, and its determinant is the complex number
det M = 1 x 0 2 + | x 1 | 2 x ¯ 0 | x 0 | + x ¯ 1 x 1 x ¯ 0 | x 0 | = x ¯ 0 | x 0 |
with det M = 1 . The matrix product M ( x 0 , x 1 ) equals
1 x 0 2 + | x 1 | 2 x ¯ 0 x ¯ 1 x 1 x ¯ 0 | x 0 | | x 0 | x 0 x 1 = 1 x 0 2 + | x 1 | 2 x 0 2 + | x 1 | 2 0 = x 0 2 + | x 1 | 2 0 .
Consider the polar form of the numbers, x 0 = x 0 e i φ 0 and x 1 = x 1 e i φ 1 . Then, the matrix M in Equation (17) can be written as
M = 1 x 0 2 + | x 1 | 2 x 0 e i φ 0 x 1 e i φ 1 x 1 e i ( φ 1 φ 0 ) | x 0 | .
Denoting
cos ϑ = x 0 x 0 2 + | x 1 | 2 a n d sin ϑ = x 1 x 0 2 + | x 1 | 2 ,
for angle ϑ = atan ( x 1 / x 0 ), we obtain the following:
M = e i φ 0 cos ϑ e i φ 1 sin ϑ e i ( φ 1 φ 0 ) sin ϑ cos ϑ = 1 0 0 e i φ 0 e i φ 0 cos ϑ e i φ 1 sin ϑ e i φ 1 sin ϑ e i φ 0 cos ϑ .
Therefore, this matrix can be represented as
M = 1 0 0 e i φ 0 e i ( φ 0 + φ 1 ) / 2 0 0 e i ( φ 0 + φ 1 ) / 2 cos ϑ sin ϑ sin ϑ cos ϑ e i ( φ 0 φ 1 ) / 2 0 0 e i ( φ 0 φ 1 ) / 2 .
This is the decomposition of the matrix by the phase shift, two Z -rotations, and one Y -rotation, that is,
M = P φ 0 R z φ 0 + φ 1 R y ϑ R z φ 0 φ 1 .
For the real numbers x 0 and x 1 , the matrix is
M = 1 x 0 2 + x 1 2 x 0 x 1 x 1 x 0 | x 0 | | x 0 | = 1 x 0 2 + x 1 2 1 0 0 | x 0 | x 0 x 1 x 1 x 0 1 ,
det M = x 0 | x 0 | = ± 1 .
The phase shift gate P φ 0 can be removed from the decomposition in Equation (23) and the operation with the following matrix can be considered:
M = e i ( φ 0 + φ 1 ) / 2 0 0 e i ( φ 0 + φ 1 ) / 2 cos ϑ sin ϑ sin ϑ cos ϑ e i ( φ 0 φ 1 ) / 2 0 0 e i ( φ 0 φ 1 ) / 2 .
This is the decomposition of the matrix by two Z -rotations and one Y -rotation,
M = M Φ = M φ , ϑ , ψ = R z φ R y ϑ R z ψ .
Here, the vector-angle Φ = ( φ , ϑ , ψ ) , and the angles φ = φ 0 + φ 1 and ψ = φ 0 φ 1 . The 2 × 2 matrix M is defined as
M = 1 x 0 2 + | x 1 | 2 x ¯ 0 x ¯ 1 x 1 x 0 , det M = 1 .
All coefficients of this matrix are complex numbers. The circuit element for the 1-qubit operation with matrix M is shown in Figure 5.
Also, we consider the transform with the following unitary 2 × 2 matrix:
K = 1 x 0 2 + | x 1 | 2 x 1 x 0 x ¯ 0 x ¯ 1 , det K = 1 .
Transform K moves the energy of the complex vector ( x , y ) to the second output,
1 x 0 2 + | x 1 | 2 x 1 x 0 x ¯ 0 x ¯ 1 x 0 x 1 = 0 x 0 2 + | x 1 | 2 .
The following decomposition holds:
K = e i ( φ 0 + φ 1 ) / 2 0 0 e i ( φ 0 + φ 1 ) / 2 cos γ sin γ sin γ cos γ e i ( φ 1 φ 0 ) / 2 0 0 e i ( φ 1 φ 0 ) / 2 .
with the angle γ = atan ( x 0 / x 1 ) . Thus,
K = K Φ = K φ , γ , ψ = R z φ R y γ R z ψ ,
where the vector-angle Φ = ( φ , γ , ψ ) . The circuit element for the 1-qubit operation K with this matrix is shown in Figure 6. It should be noted that because of γ = ϑ + π / 2 , this matrix can be written as M φ , ϑ + π / 2 , ψ .
Example 2.
Consider the complex generator x = 1 3 i , 2 + 2 i , 4 + i , 2 2 i ,   3 + i , 1 + 4 i , 2 + 5 i , 1 + 2 i   with the energy 104 . To generate the complex 8-point DsiHT, we will use the road map given in Figure 2. Each of seven butterflies in this road map will represent the corresponding complex gate M Φ k = M ϑ k ,   φ k , ψ k , k = 1:7, with three parameters and angles. The circuit of the 3-qubit complex QsiHT is given in Figure 7.
The angles of seven gates M Φ k are given in Table 2.
The circuit is described by the following matrix equation:
H 8 = M Φ 7 ; 0 , 4 M Φ 6 ; 4 , 6 M Φ 5 ; 0 , 2 M Φ 4 ; 6 , 7 M Φ 3 ; 4 , 5 M Φ 2 ; 2 , 3 M Φ 1 ; 0 , 1 .
As in the case of real rotations, the notation M Φ ; i , j is used for the controlled gate M Φ that operates on the biplanes i and j , i j . This circuit of the 3-qubit QsiHT calculates the first basis state | 000 from the generator, written as the 3-qubit superposition
| x = 1 104   ( 1 3 i ) | 000 + ( 2 + 2 i ) | 00 1 + ( 4 + i ) | 01 0 ( 2 + 2 i ) | 01 1 + + 3 + i 10 0 + 1 + 4 i 10 1 2 5 i 01 0 + 1 + 2 i 11 1   .
That is, H 8 | x = | 00 0 , or H 8 x = (1,0,0,…,0)’. The matrix of this transform is equal to
H 8 = 0.0981 0.1961 0.3922 0.1961 0.2942 0.0981 0.1961 0.0981 0.4714 0.2357 0 0 0 0 0 0 0.1797 0.3594 0.5176 0.2588 0 0 0 0 0 0 0.4 0.8 0 0 0 0 0.1168 0.2336 0.4672 0.2336 0.2470 0.0823   0.1647 0.0823 0 0 0 0 0.1925 0.5774 0 0 0 0 0 0 0.4310 0.1437 0.2282 0.1141 0 0 0 0 0 0 0.1141 0.3430 + i 0.2942 0.1961 0.0981 0.1961 0.0981 0.3922 0.4903 0.1961 0.4714 0.7071 0 0 0 0 0 0 0.5392 0.3594 0.1294 0.2588 0 0 0 0 0 0 0.4 0.2 0 0 0 0 0.3504 0.2336   0.1168 0.2336 0.0823 0.3293   0.4116 0.1647 0 0 0 0 0.7698 0.1925 0 0 0 0 0 0 0.1437 0.5747 0.5705 0.2282 0 0 0 0 0 0 0.3430 0.8575 .
The determinant of this matrix is equal to 1. As in the case of the real generator in Example 1, the number of zeros in this matrix is equal to 32 (the half of the size of the matrix).
The matrix is unitary, the transpose matrix is the inverse matrix of the conjugate transpose,   H 8 = ( H ¯ 8 ) T . Therefore, the 3-qubit preparation ( | 000 | x ) can be accomplished by the 3-qubit gates as
H 8 = M Φ 1 ; 0 , 1 M Φ 2 ; 2 , 3 M Φ 3 ; 4 , 5 M Φ 4 ; 6 , 7 M Φ 5 ; 0 , 2 M Φ 6 ; 4 , 6 M Φ 7 ; 0 , 4 .
Note that the gate inverse to M Φ is calculated by
M Φ = M ϑ , φ , ψ = R z φ R y ϑ R z ψ = R z ψ R y ϑ R z φ = R z ψ R y ϑ R z φ .
Thus, M Φ 1 = M Φ = M ψ , ϑ , φ . The triplets of angles for the inverse gates change as φ k , ϑ k , ψ k ( ψ k , ϑ k , φ k ) , k = 1 : 7 .
Figure 8 shows the quantum circuit for preparing the 3-qubit superposition | x , by using the first road map of the 8-point DsiHT. This circuit is composed of rotation gates R y and R z . These two gates, Y - and Z -rotations, together with the phase gate, compose the set of universal gates for 3-qubit operations. This circuit uses a maximum of 7 rotation gates R y and 14 gates R z .
The main characteristics of this quantum circuit are given in Table 3.
For the signal x in Example 2, there are six zero angles for gates R z in Table 1. This means that the last three operations are rotations, M k = M Φ k = R ϑ k ,   k = 5 : 7 . The circuit can be simplified. The full quantum circuit to initiate the 3-qubit state | x in Equation (35) is shown in Figure 9. The circuit contains seven rotation gates R y and eight gates R z . The total number of gates is 15.

4. DsiHT-Based QR Decomposition

In this section, we describe the QR decomposition of a square unitary matrix of size 2 r × 2 r ,   r > 1 , by the Givens rotations [34,38]. The unitary matrix A = { a i , j } is considered with real or complex coefficients. In this decomposition, the matrix is presented as A = Q R , where Q is a unitary matrix composed of rotations, and R is a diagonal matrix with coefficients lying on the unit circle. During this decomposition, the matrix A is transformed sequentially into a diagonal matrix R . ( 2 r 1 ) DsiHTs are used in the QR decomposition of matrix A . The first step of this decomposition is illustrated below, for an 8 ×   8 unitary matrix,
A = x 0 x 1 x 2 x 3 x 4 x 5 x 6 x 7     x D s i H T   A 1 = x 0 ( 3 ) 0 0 0 0 0 0 0 0 y 1 0 y 2 0 y 3 0 y 4 0 y 5 0 y 6 0 y 7 R .
The matrix diagonalization can be described by the following steps:
1.
The first DsiHT, denoted as H 0 7 , is generated by the first column a 0 , 0 , a 1 , 0 ,   , a 7 , 0 of the matrix A , which we denote by x = x 0 , x 1 , , x 7 . This transform changes this column as
H 0 7 : x x 0 ( 3 ) , 0 , 0 , , 0 = ± x , 0 , 0 , , 0 .
After multiplying the matrix of this DsiHT by matrix A , the new matrix A 1 = H 0 7 A will have the form shown in Equation (39). Except the first point on the diagonal, all values of the first column and row are equal to 0.
2.
The second 8-point DsiHT, denoted as H 1 7 , is generated by the second column of the new matrix A 1 , which is denoted as y = 0 , y 1 , , y 7 . This transform will change this column as
H 8 ; # 2 : y 0 , ± y , 0 , 0 , , 0
and other columns z of the matrix A 1 as H 1 7 : z 0 , 0 , z 2 , , z 7 .
3.
A similar 8-point DsiHT, H 2 7 , will be generated by the 3rd column of the new matrix A 2 = H 1 7 ( H 0 7 A ) and applied on it. If we denote this column as v = 0 , 0 , v 2 , , v 7 , then this transform will change this column as
H 2 7 : v 0 , 0 , ± v , 0 , 0 , , 0
and other columns z of the matrix A 2 as H 2 7 : z 0 , 0 , 0 , z 3 , , z 7 .
4.
This process is continued four more times, until matrix diagonalization is completed
R = H 6 7 ( ( H 2 7 ( H 1 7 ( H 0 7 A ) ) ) ) .              
Each of these seven 8-point DsiHTs can be defined with the fast path, as in the examples described above, which calculate these transforms only on adjacent bit planes.
In the above, for k = 0 : 6 , the transform H k 7 generated by the vector x = x 0 , x 1 , ,   x 7 does not change the first values x 0 , x 1 ,   ,   x k 1 of x , as well as a vector z on which it applies. That is, it processes only the remaining components. For instance, if k = 2 ,
H 2 7 : z = z 0 , z 1 , z 2 , z 3 , z 4 , z 5 , z 6 ,   z 7 z 0 , z 1 , z 2 , z 3 , z 4 , z 5 , z 6 ,   z 7 .      
This 8-point DsiHT is generated under the condition,
H 2 7 : x = 0 , 0 , x 2 , x 3 , x 4 , x 5 , x 6 ,   x 7 0 , 0 , ± x , 0 , 0 , 0 , 0 , 0 ,
where x is the norm of the vector, x = | x 2 | 2 + | x 3 | 2 + | x 7 | 2 . Thus, the energy of the signal is moved to the third components ( k + 1 = 3 ).
These seven 8-point DsiHT with fast paths for the QR-decomposition of a matrix 8 × 8 are described in detail and with the quantum circuits in [24] for the real matrix A . The QR decomposition is encoded, as shown in Table 4.
All butterflies (BF) and paths are shown in this table for all seven DsiHTs that are used in the decomposition. In other words, seven roadmaps are encoded in this table. For instance, we consider the transform H 2 7 . Five butterflies are used as follows. The butterflies are numbered from left to right. The first butterfly is encoded as 2 , 3 , meaning that it operates on bit-planes 2 and 3, and the second output of the operation is zero (symbol ‘o’ is used). The energy of the input will be moved to the first output (symbol ‘*’ is used). This butterfly is the operation of rotation described in Equation (3). The butterfly number 4, which is encoded as 4 , 6 , operates on bit-planes 4 and 6 and moves the energy of the input to the second output. The first output is zero. This is the rotation described in Equation (4). The remaining butterflies of numbers 2, 3, and 5 operate on bit-planes (4,5), (6,7), and (2,6), respectively. They are operations of rotation that move the energy of the inputs to the first component, as the first butterfly. The road map and the quantum circuit for the 3-qubit DsiHT, H 2 7 , for the real generator are given in Figure 10.
This encoded table shows that 20 gates M Φ n and 8 gates K Φ n are used for the decomposition of the matrix. The same encoded table can be used in the case when the matrix A is complex. Only the above butterflies as real gates should be changed by the corresponding complex gates M Φ n or K Φ n . For instance, in the above case, the 1st butterfly 2 , 3 will be changed by M Φ 1 , and the firth butterfly 4 , 6 should be changed to K Φ 4 . The corresponding quantum circuit is given in Figure 11.

5. Two-Qubit Operations

In this section, we describe two QR-decompositions of 4 × 4 real matrix A by the above method of DsiHT. First, we consider the encoded data of the decomposition, which is given in Table 5. The corresponding quantum circuit for the 2-qubit operation QR decomposition is given in Figure 12.
To simplify the notations in equation of such circuits, all rotation gates (and angles of rotations) are numbered as 1, 2, …, 7 from left to right. Therefore, the circuit in Figure 12 is described by the operation
H 2 = R ϑ 6 ; 2 , 3 R ϑ 5 ; 1 , 3 R ϑ 4 ; 2 , 3 R ϑ 3 ; 0 , 1 R ϑ 2 ; 1 , 3 R ϑ 1 ; 0 , 2 ,
and the diagonal matrix R = H 2 A .
Note that the road map for the first 4-point DsiHT, H 0 3 , can be changed, as shown in Table 6. Then, the quantum circuit for the corresponding decomposition of the 2-qubit operation will change, as shown in Figure 13,
H 2 = R ϑ 6 ; 2 , 3 R ϑ 5 ; 1 , 3 R ϑ 4 ; 2 , 3 R ϑ 3 ; 0 , 2 R ϑ 2 ; 2 , 3 R ϑ 1 ; 0 , 1 ,
and R = H 2 A . This cicuit has a depth of 5, when the circuit in Figure 12 has a depth of 4. The angles ϑ k ,   k = 1 : 7 , and diagonal matrices R for these decompositions of A are different.
Next, we consider the 2-qubit complex operations and describe a quantum circuit to calculate them by using only rotation gates.

Complex 2-Qubit Operations

For 4 × 4 complex matrix A , the quantum circuit for the QR-decomposition by the first encoded table (Table 5) is shown in Figure 14. This circuit generalizes the circuit in Figure 12, which is given for a real matrix. There are five gates M Φ k ,   k = 1 , 2 , 3 , 5 , 6 , and one gate K Φ 4 . The gates are numbered from left to right.
The same circuit of the decomposition operation, H 2 : A R , is given in Figure 15 in a simplified form,
H 2 = M Φ 6 ; 2 , 3 M Φ 5 ; 1 , 3 K Φ 4 ; 2 , 3 M Φ 3 ; 0 , 1 M Φ 2 ; 1 , 3 M Φ 1 ; 0 , 2 .
The QR-factorization of the unitary matrix results in a diagonal matrix R = H 2 A with coefficeints lying on the unit circle. Therefore, the 3-qubit operation can be accomplished by inverting all six gates in Equation (48),
A = H 2 R = M Φ 1 ; 0 , 2 M Φ 2 ; 2 , 3 M Φ 3 ; 0 , 1 K Φ 4 ; 2 , 3 M Φ 5 ; 1 , 3 M Φ 6 ; 2 , 3 R .
The inverse to the K gate is calculated as K Φ = R z φ R γ R z ψ = R z ( ψ ) R γ R z φ .
Thus, we obtain the circuit to calculate the 2-qubit operation A . This circuit is shown in Figure 16 and in more detail in Figure 17.
If we use the second encoded table, namely Table 6, for 2-qubit complex operation A , then we obtain the circuit that is shown in Figure 18. Comparing this circuit with the one in Figure 16, one can notice the change in the part of the transform H 0 3 . Angles are also different for all 6 complex gates.
Example 3.
Consider the following complex unitary 4 × 4 matrix:
A = 0.4685 + 0.4685 i 0.2810 0.5163 i 0.4049 + 0.1321 i 0.1224 + 0.1380 i 0.3123 + 0.3123 i 0.4379 + 0.2810 i 0.2124 0.2434 i 0.0260 + 0.6551 i 0.1562 + 0.3123 i 0.3987 0.0327 i 0.0777 0.5352 i 0.0391 0.6512 i 0.1562 + 0.4685 i 0.0915 + 0.4640 i 0.2987 + 0.5767 i 0.0847 0.3217 i
with the determinant det A = 1 . All angles in the DsiHT-based QR decomposition of matrix A = Q R are shown in Table 7. The encoding table is considered to be Table 5. The diagonal matrix is equal to R = d i a g 1 , 1 , 1 , e i π / 12 , which can be written with the phase gate as R = I 2 P ( π / 12 ) . The symbol is used for the Kronecker sum of matrices [1]. In the last gate M Φ 3 ; 0 , 2 , of the tranform H 0 3 , two Z -rotations are the identity transforms, R z 0 = I 2 . This gate is Y -rotation gate R ϑ 3 ; 0 , 2 .
The same diagonal matrix R = d i a g 1 , 1 , 1 , e i π / 12 is obtained when the QR-decomposition of the matrix A is calculated by encoding Table 7. In this case, the set of angles of rotations changes as shown in Table 8.
One can note that there are more angles with simple rotations than in Table 7. Therefore, we chose the quantum circuit in Figure 18 for calculating the 2-qubit operation described by the matrix in Equation (50). In the first gate M Φ 1 ; 0 , 2 of the transformation H 0 3 , one Z -rotation is the identity transform, R z 0 = I 2 . Also, on the 2nd stage of the DsiHT, H 1 3 , the vector-angle Φ 2 = φ 2 , ϑ 2 , ψ 2 = ( 180 ° , 42.6315 ° , 180 ° ) . The following holds for the rotation gates with such angles:
M Φ 2 = M π , ϑ 2 , π = R z π R y ϑ 2 R z π = R y ϑ 2 + π .    
This operation is described by one rotation gate R y . Therefore, the circuit for the 2-qubit operation A in Figure 18 can be simplified as shown in Figure 19. Here, we consider the angle ϑ 2 = 42.6315 ° and 180 ° 42.6315 ° = 137.3685 ° . This quantum circuit for this operation A includes six Y -rotations, seven Z -rotations, and one phase gate.

6. The Circuit for 3-Qubit Operation

The QsiHT-based QR decomposition T : A R of a unitary matrix 8 × 8 is accomplished by seven transforms in Equation (43). Therefore, the 3-qubit operation can be calculated as
A = T 1 R = H 0 7 H 1 7 H 2 7 H 3 7 H 4 7 H 5 7 H 6 7 R .    
This operation in the case where matrix A is real is described in detail in [24]. The quantum circuit uses a maximum of 28 control Y -rotations and one phase gate for the diagonal matrix R . All rotations are fulfilled on the adjacent bit planes because of the encoded Table 4. Therefore, the circuit does not use any permutation elements or CNOT gates. The same encoding table is used in the complex case of the matrix. The quantum circuit is shown in Figure 20. It uses 28 × 3 = 84 rotation gates and the depth of the circuit is equal to 18 × 3 = 54. The numbers of rotation gates and depth for each 3-qubit QsiHT circuit element and its depth are in given in Table 9.
It is considered that the depth of each complex gate M Φ i and K Φ i is equal to 3. In the case, when the operation is real, this number is counted as 1, and the depth of the circuit is equal to 54 / 3 = 18 .

7. The Circuit for 4-Qubit Operation

In this section, we describe the circuit for calculating 4-qubit operations, which is defined by a complex unitary 16 × 16 matrix A . The QR-decomposition is accomplished by fifteen 16-point DsiHTs in total on 120 adjacent biplanes. The information on this decomposition
H 4 : A R = H 14 15 ( H 13 15 ( ( H 2 15 ( H 1 15 ( H 0 15 A ) ) ) ) )
is given in encoding Table 10.
If we use this table for a real 4-qubit operation, the QR decomposition requires only 120 rotation gates. Therefore, the quantum circuit for this operation
A = H 0 15 ( H 1 15 ( ( H 12 15 ( H 13 15 ( H 14 15 ) ) ) ) ) R
requires a maximum of 120 rates R y plus one Pauli Z gate for the diagonal matrix with coefficients { 1 , 1 , , 1 , 1 , ± 1 } , if the last coefficient is 1 .
The road map for all 15 DsiHTs with fast paths are shown in Figure A1, Figure A2, Figure A3, Figure A4, Figure A5, Figure A6, Figure A7, Figure A8, Figure A9 and Figure A10 in Appendix A. The quantum circuit for these transforms are also given in these figures. As shown in Figure A9, the roadmap for the DsiHT, H 8 15 , is composed of the corresponding roadmap of the 3-qubit transform H 0 7 . In the circuit, we need only to add the circuit of the 3-qubit transform controlled by the first qubit. Similarly, the road maps for the last six DsiHTs, H k 15 , when k = 9 : 14 , are composed of the corresponding road maps of the 3-qubit transforms H ( k 8 ) 7 . Therefore, the quantum circuits for these transforms, H k 15 , are composed of the circuits of the transformation H ( k 8 ) 7 controlled by the first qubit, as shown in Figure A10.
All transforms H k 15 , when k = 0 : 14 , are defined with fast paths, that is, they are composed of rotations on adjacent bit-planes only. The circuits are given for the case when the matrix of the 4-qubit operation is real. In the complex case, these rotations are substituted by the complex gates M Φ i or K Φ i , as shown in the road maps. The total number of these gates is equal to 120. Among them, 40 gates are of type K Φ i . In all circuits, the gates are numbered from left to right. However, the numbers are shown only for K Φ i gates. For instance, for the transformation H 1 15 , instead of rotation gate numbers 1–4, 9, 10, and 13, K Φ i gates are used when drawing this circuit for the complex 4-qubit operation. The remaining seven rotations will be substituted by the corresponding M Φ j gates.
All angles ( φ j , ϑ j , ψ j ) and ( φ i , γ i , ψ i ) of these 120 complex gates represents the table of keys of the 4-qubit operation A . Such tables of keys are described in detail in examples for 2- and 3-qubit operation in [24]. In the general case when n 2 , an n -qubit operation can be decomposed by ( 2 n 1 ) DsiHTs with fast path. The total number of M Φ i and K Φ i gates in the decomposition is equal to 2 n 1 ( 2 n 1 ) . For a real n -qubit operation A , the number of rotation gates R y is equal to 2 n 1 ( 2 n 1 ) .
In conclusion, we consider the work of Fedoriaka [23], where the QR decomposition was implemented with Gray code and fully controlled gates. We refer to this method as the X and fully controlled gate decomposition (XFCD). The corresponding code was implemented in Q# programming language and is publicly available (for detail, see [23]). The decomposition uses Y , Z -rotation gates, phase gates, and X gates with matrix X = [ 0 , 1 ; 1 , 0 ] . The comparison is shown in Table 11 for 3- and 4-qubit operations. We note that the XFCD was implemented for the special unitary operations, whose matrices A have the determinant det A = 1 . In general, for a unitary matrix | det A | = 1 . The proposed QsiHT-based QR decomposition method is used for any unitary operation. For special cases of n -qubit operations, the number of gates may be smaller, and the above quantum circuits can be reduced, or simplified, as shown in [24] with the example of Dicke states [39].
The main advantage of the proposed QR decomposition by the DsiHT with fast paths is that
  • It does not require any permutations for any unitary gate in the quantum computation. It means that CNOT operations are not required.
  • A maximum of ( 2 n 1 ) Givens rotations are gates required to perform an n -qubit operation with a unitary real matrix.
  • A maximum of ( 2 n 1 ) Givens rotation and 2 ( 2 n 1 ) Z -rotation gates are required to perform an n -qubit operation with a unitary complex matrix.
  • It gives us a simple (transparent) calculation quantum circuit.
  • Any n -qubit operation can be generated by a table of keys.
  • It shows that Y - and Z -rotation plus global phase gate are a universal set of gates in quantum computation.

8. Conclusions

The QsiHT-based QR decomposition of a multi-qubit operation allows us to build quantum circuits without any permutations. All QsiHTs in the decomposition of the complex matrix use the fast paths. This is illustrated by the roadmaps given in the examples of 3- and 4-qubit operations. The corresponding quantum circuits for the matrix decomposition and calculation are described in detail. The presented method can also be generalized for quantum circuits to compute n -qubit operations, when n > 4 . The cases of a unitary operation with real and complex matrices are considered. For any n -qubit operation, a maximum of ( 4 n / 2 2 n 1 ) controlled Y -rotation gates are only used for real operation. For complex n-qubit operation, each Y -rotation is combined with two Z -rotation gates. No permutations, including CNOTs, are used. In future works, we plan to present a universal methodology to generate any n -qubit QsiHT-based QR decomposition circuit beyond 4 qubits by developing automated layer-selection algorithms for the n -qubit QsiHT.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in the current study are available from the author upon request.

Conflicts of Interest

The author declares no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
DsiHTDiscrete signal-induced Heap transform
QsiHTQuantum signal-induced Heap transform
QFTQuantum Fourier transform
QRQR decomposition of the matrix
CSDCosine-sine decomposition
BPBit plane
BFButterfly

Appendix A

Each road map with circuit shown here describes the corresponding 16-point DsiHT, or 4-qubit QsiHT, used in the decomposition of the 4-qubit operations.
Figure A1. The road map and the quantum circuit for the 8-qubit QsiHT, H 0 15 .
Figure A1. The road map and the quantum circuit for the 8-qubit QsiHT, H 0 15 .
Information 16 00621 g0a1
Figure A2. The road map and the circuit for the 4-qubit QsiHT, H 1 15 , on bit-planes 1–15.
Figure A2. The road map and the circuit for the 4-qubit QsiHT, H 1 15 , on bit-planes 1–15.
Information 16 00621 g0a2
In the roadmap of Figure A3, the first two bit-planes are not processing, that is, the components x 0 and x 1 do not change during the transform.
Figure A3. The road map and the circuit for the 4-qubit QsiHT, H 2 15 , on bit-planes 2–15.
Figure A3. The road map and the circuit for the 4-qubit QsiHT, H 2 15 , on bit-planes 2–15.
Information 16 00621 g0a3
In the roadmap in Figure A2, and in the following roadmaps, to simplify the drawing, not all bit-planes are shown, but only those on which the transform operates. That is, the bit-planes on which the input components will be changed.
Figure A4. The road map and the circuit for the 4-qubit QsiHT, H 3 15 , on bit-planes 3–15.
Figure A4. The road map and the circuit for the 4-qubit QsiHT, H 3 15 , on bit-planes 3–15.
Information 16 00621 g0a4
Figure A5. The road map and the circuit for the 4-qubit QsiHT, H 4 15 , on bit-planes 4–15.
Figure A5. The road map and the circuit for the 4-qubit QsiHT, H 4 15 , on bit-planes 4–15.
Information 16 00621 g0a5
Figure A6. The road map and the circuit for the 4-qubit QsiHT, H 5 15 , on bit-planes 5–15.
Figure A6. The road map and the circuit for the 4-qubit QsiHT, H 5 15 , on bit-planes 5–15.
Information 16 00621 g0a6
Figure A7. The road map and the circuit for the 4-qubit QsiHT, H 6 15 , on bit-planes 6–15.
Figure A7. The road map and the circuit for the 4-qubit QsiHT, H 6 15 , on bit-planes 6–15.
Information 16 00621 g0a7
Figure A8. The road map and the circuit for the 4-qubit QsiHT, H 7 15 , on bit-planes 7–15.
Figure A8. The road map and the circuit for the 4-qubit QsiHT, H 7 15 , on bit-planes 7–15.
Information 16 00621 g0a8
Figure A9. The road map and the circuit for the 3-qubit QsiHT, H 8 15 .
Figure A9. The road map and the circuit for the 3-qubit QsiHT, H 8 15 .
Information 16 00621 g0a9
Figure A10. The circuit elements for the 4-qubit QsiHTs, H k 15 , for k = 9 : 14 .
Figure A10. The circuit elements for the 4-qubit QsiHTs, H k 15 , for k = 9 : 14 .
Information 16 00621 g0a10

References

  1. Nielsen, M.A.; Chuang, I.L. Quantum Computation and Quantum Information; Cambridge University Press: Cambridge, UK, 2000. [Google Scholar]
  2. Rieffel, E.G.; Polak, W.H. Quantum Computing: A Gentle Introduction; The MIT Press: Cambridge, MA, USA, 2011. [Google Scholar]
  3. Deutsch, D.; Barenco, A.; Ekert, A. Universality in quantum computation. Proc. R. Soc. Lond. A Math. Phys. Sci. 1995, 449, 669–677. [Google Scholar]
  4. Barenco, A.; Bennett, C.H.; Cleve, R.; DiVincenzo, D.P.; Margolus, N.; Shor, P.; Sleator, T.; Smolin, J.A.; Weinfurter, H. Elementary gates for quantum computation. Phys. Rev. A 1995, 52, 3457–3467. [Google Scholar] [CrossRef] [PubMed]
  5. Knill, E. Approximation by Quantum Circuits; LANL Rep. LAUR-95-2225; Los Alamos National Laboratory: Los Alamos, NM, USA, 1995. [Google Scholar]
  6. Pratt, W.K. Digital Image Processing, 3rd ed.; John Wiley & Sons, Inc.: New York, NY, USA, 2001. [Google Scholar]
  7. Gonzalez, R.; Woods, R. Digital Image Processing, 2nd ed.; Prentice-Hall: Upper Saddle River, NJ, USA, 2002. [Google Scholar]
  8. Björck, A. Solving Linear Least Squares Problems by Gram-Schmidt Orthogonalization. BIT Numer. Math. 1967, 7, 1–21. [Google Scholar] [CrossRef]
  9. Householder, A.S. Unitary Triangulation of a Nonsymmetric Matrix. J. ACM 1958, 5, 339–342. [Google Scholar] [CrossRef]
  10. Rutishause, H. Simultaneous Iteration Method for Symmetric Matrices. In Handbook for Automatic Computation: Linear Algebra; Bauer, F.L., Ed.; Springer: Berlin/Heidelberg, Germany, 2017; Volume 186. [Google Scholar]
  11. Golub, G.H.; Van Loan, C.F. Matrix Computations, 3rd ed.; Johns Hopkins Press: Baltimore, MD, USA, 1996. [Google Scholar]
  12. Bindel, D.; Demmel, J.; Kahan, W.; Marques, O. On Computing Givens Rotations Reliably and Efficiently; LAPACK Working Note 148, UT-CS-00-449; University of Tennessee: Knoxville, TN, USA, 2001. [Google Scholar]
  13. Demmel, J.; Grigori, L.; Hoemmen, M.; Langou, J. Communication-optimal parallel and sequential QR and LU factorizations. SIAM J. Sci. Comp. 2012, 34, 206–239. [Google Scholar] [CrossRef]
  14. Deutsch, D. Quantum computational networks. Proc. R. Soc. Lond. A Math. Phys. Sci. 1989, 425, 73–90. [Google Scholar]
  15. Vartiainen, J.J.; Möttönen, M.; Salomaa, M.M. Efficient decomposition of quantum gates. Phys. Rev. Lett. 2004, 92, 177902. [Google Scholar] [CrossRef] [PubMed]
  16. Tseng, C.C.; Hwang, T.M. Quantum circuit design of 8 × 8 discrete Hartley transform. In Proceedings of the 2004 IEEE International Symposium on Circuits and Systems (ISCAS), Vancouver, BC, Canada, 23–26 May 2004; p. III-397. [Google Scholar]
  17. Plesch, M.; Brukner, C. Quantum state preparation with universal gate decompositions. arXiv 2011, arXiv:1003.5760v2. [Google Scholar] [CrossRef]
  18. Zhang, X.M.; Li, T.; Yuan, X. Quantum state preparation with optimal circuit depth: Implementations and applications. arXiv 2023, arXiv:2201.11495v4. [Google Scholar] [CrossRef] [PubMed]
  19. Volya, D.; Mishra, P. State preparation on quantum computers via quantum steering. arXiv 2023, arXiv:2302.13518v3. [Google Scholar]
  20. Pinto, D.F.; Friedrich, L.; Maziero, J. Preparing general mixed quantum states on quantum computers. arXiv 2024, arXiv:2402.04212. [Google Scholar]
  21. Bergholm, V.; Vartiainen, J.J.; Möttönen, M.; Salomaa, M.M. Quantum circuits with uniformly controlled one-qubit gates. arXiv 2004. [Google Scholar] [CrossRef]
  22. Mikko, M.; Vartiainen, J.J. Decompositions of general quantum gates. arXiv 2005, arXiv:quant-ph/0504100v1. [Google Scholar]
  23. Fedoriaka, D. Decomposition of unitary matrix into quantum gates. arXiv 2025, arXiv:2501.07786. [Google Scholar]
  24. 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. [Google Scholar] [CrossRef]
  25. Yoran, N.; Short, A. Efficient classical simulation of the approximate quantum Fourier transform. Phys. Rev. A 2007, 76, 042321. [Google Scholar] [CrossRef]
  26. Marquezinoa, F.L.; Portugala, R.; Sasse, F.D. Obtaining the quantum Fourier transform from the classical FFT with QR decomposition. J. Comput. Appl. Math. 2014, 235, 74–81. [Google Scholar] [CrossRef]
  27. Cooley, J.W.; Tukey, J.W. An algorithm for the machine calculation of complex Fourier series. Math. Comput. 1965, 19, 297–301. [Google Scholar] [CrossRef]
  28. Li, H.S.; Fan, P.; Xia, H.; Song, S.; He, X. The quantum Fourier transform based on quantum vision representation. Quantum Inf. Process. 2018, 17, 333. [Google Scholar] [CrossRef]
  29. Grigoryan, A.M.; Agaian, S.S. Paired quantum Fourier transform with log2N Hadamard gates. Quantum Inf. Process. 2019, 18, 217. [Google Scholar] [CrossRef]
  30. Shende, V.V.; Bullock, S.S.; Markov, I.L. Synthesis of quantum-logic circuits. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2006, 25, 1000–1010. [Google Scholar] [CrossRef]
  31. Möttönen, M.; Vartiainen, J.J.; Bergholm, V.; Salomaa, M.M. Quantum circuits for general multiqubit gates. Phys. Rev. Lett. 2004, 93, 130502. [Google Scholar] [CrossRef] [PubMed]
  32. Shende, V.V.; Markov, I.L.; Bullock, S.S. Minimal universal two-qubit controlled-not based circuits. Phys. Rev. A At. Mol. Opt. Phys. 2004, 69, 062321–062329. [Google Scholar] [CrossRef]
  33. Grigoryan, A.M. New method of Givens rotations for triangularization of square matrices. J. Adv. Linear Algebra Matrix Theory (ALAMT) 2014, 4, 65–78. [Google Scholar] [CrossRef]
  34. Grigoryan, A.M. Effective methods of QR-decompositions of square complex matrices by fast discrete signal-induced heap transforms. Adv. Linear Algebra Matrix Theory (ALAMT) 2023, 12, 87–110. [Google Scholar] [CrossRef]
  35. Grigoryan, A.M.; Grigoryan, M.M. Nonlinear approach of construction of fast unitary transforms. In Proceedings of the 2006 40th Annual Conference on Information Sciences and Systems, Princeton, NJ, USA, 22–24 March 2006; pp. 1073–1078. [Google Scholar] [CrossRef]
  36. Grigoryan, A.M.; Agaian, S.S. Quantum Image Processing in Practice: A Mathematical Toolbox; WILEY: Hoboken, NJ, USA, 2025; p. 320. [Google Scholar]
  37. Grigoryan, A.M.; Grigoryan, M.M. Brief Notes in Advanced DSP: Fourier Analysis with MATLAB; CRC Press, Taylor, and Francis Group: Boca Raton, FL, USA, 2009. [Google Scholar]
  38. Cybenko, G. Reducing quantum computations to elementary unitary operations. Comput. Sci. Eng. 2001, 3, 27–32. [Google Scholar] [CrossRef]
  39. Bärtschi, A.; Eidenbenz, S. Deterministic preparation of Dicke states. In Proceedings of the International Symposium on Fundamentals of Computation Theory, Copenhagen, Denmark, 12–14 August 2019. [Google Scholar]
Figure 1. Two-level DsiHT, H x , generated by (a) a signal x and applied on (b) the input signal z , and (c) the output signal.
Figure 1. Two-level DsiHT, H x , generated by (a) a signal x and applied on (b) the input signal z , and (c) the output signal.
Information 16 00621 g001
Figure 2. The road map and the circuit for the 3-qubit QsiHT.
Figure 2. The road map and the circuit for the 3-qubit QsiHT.
Information 16 00621 g002
Figure 3. The second road map and the circuit for the 3-qubit QsiHT, H 8 .
Figure 3. The second road map and the circuit for the 3-qubit QsiHT, H 8 .
Information 16 00621 g003
Figure 4. The circuit for preparing the 3-qubit state | x .
Figure 4. The circuit for preparing the 3-qubit state | x .
Information 16 00621 g004
Figure 5. The circuit element for 1-qubit operation M .
Figure 5. The circuit element for 1-qubit operation M .
Information 16 00621 g005
Figure 6. The circuit element for the 1-qubit gate K .
Figure 6. The circuit element for the 1-qubit gate K .
Information 16 00621 g006
Figure 7. The 3-qubit complex QsiHT.
Figure 7. The 3-qubit complex QsiHT.
Information 16 00621 g007
Figure 8. The general circuit for preparing a 3-qubit state | x .
Figure 8. The general circuit for preparing a 3-qubit state | x .
Information 16 00621 g008
Figure 9. The circuit for preparing a 3-qubit state | x in Example 2.
Figure 9. The circuit for preparing a 3-qubit state | x in Example 2.
Information 16 00621 g009
Figure 10. The road map and circuit for the 3-qubit real QsiHT on bit-planes 2–7.
Figure 10. The road map and circuit for the 3-qubit real QsiHT on bit-planes 2–7.
Information 16 00621 g010
Figure 11. The circuit for the 3-qubit complex QsiHT on bit-planes 2–7.
Figure 11. The circuit for the 3-qubit complex QsiHT on bit-planes 2–7.
Information 16 00621 g011
Figure 12. The first circuit for the 2-qubit decomposition of the operation.
Figure 12. The first circuit for the 2-qubit decomposition of the operation.
Information 16 00621 g012
Figure 13. The second circuit for the 2-qubit decomposition of the operation A .
Figure 13. The second circuit for the 2-qubit decomposition of the operation A .
Information 16 00621 g013
Figure 14. The quantum circuit for the decomposition of a 2-qubit complex gate A .
Figure 14. The quantum circuit for the decomposition of a 2-qubit complex gate A .
Information 16 00621 g014
Figure 15. The first quantum circuit for the decomposition of a 2-qubit complex operation A .
Figure 15. The first quantum circuit for the decomposition of a 2-qubit complex operation A .
Information 16 00621 g015
Figure 16. The quantum circuit for the 2-qubit complex gate A by using the encoding Table 5.
Figure 16. The quantum circuit for the 2-qubit complex gate A by using the encoding Table 5.
Information 16 00621 g016
Figure 17. The quantum circuit for the operation of a 2-qubit complex gate A .
Figure 17. The quantum circuit for the operation of a 2-qubit complex gate A .
Information 16 00621 g017
Figure 18. The quantum circuit for the 2-qubit complex gate A by using the encoding Table 6.
Figure 18. The quantum circuit for the 2-qubit complex gate A by using the encoding Table 6.
Information 16 00621 g018
Figure 19. The quantum circuit for the operation of a 2-qubit complex operation with the matrix A in Example 3.
Figure 19. The quantum circuit for the operation of a 2-qubit complex operation with the matrix A in Example 3.
Information 16 00621 g019
Figure 20. The quantum circuit for the 3-qubit complex operation A .
Figure 20. The quantum circuit for the 3-qubit complex operation A .
Information 16 00621 g020
Table 1. Number of CNOTs for n -qubit operation, when n = 2 : 7 .
Table 1. Number of CNOTs for n -qubit operation, when n = 2 : 7 .
n 2 3 4 5 6 7
QR [15]464536415622,618108,760
CSD [31]848224980396816,128
QSD (optimized) [30]32010044418687660
Lower bounds [32]3146125210204091
QR by QsiHT000000
Table 2. The angles of the rotations in the circuit of Figure 7.
Table 2. The angles of the rotations in the circuit of Figure 7.
Gate φ k ϑ k ψ k k
M Φ 1 26.5651 ° 41.8103 ° 116.5651 ° 1
M Φ 2 −120.9638 ° 34.4499 ° 149.0362 ° 2
M Φ 3 94.3987 ° 52.5131 ° 57.5288 ° 3
M Φ 4 175.2365 ° 22.5496 ° 48.3665 ° 4
M Φ 5 0 ° 49.6845 ° 0 ° 5
M Φ 6 0 ° 48.2947 ° 0 ° 6
M Φ 7 0 ° 49.9834 ° 0 ° 7
Table 3. Characteristic of the circuit for the 3-qubit preparation.
Table 3. Characteristic of the circuit for the 3-qubit preparation.
Method# Rotation Gates # R y # R z # Permutations/CNOTs# All GatesDepth
QsiHT217140218
Table 4. The encoded table of seven QsiHTs by the fast paths in the 3-qubit QR decomposition.
Table 4. The encoded table of seven QsiHTs by the fast paths in the 3-qubit QR decomposition.
QsiHT#BPs BFs
H 0 7 7 0 , 1     2 , 3 4 , 5 6 , 7 0 , 2 4 , 6 0 , 4
H 1 7 6 2 , 3 6 , 7 1 , 3 5 , 7 4 , 5 1 , 5
H 2 7 5 2 , 3 4 , 5 6 , 7 4 , 6 2 , 6    
H 3 7 4 4 , 5 6 , 7 5 , 7 3 , 7
H 4 7 3 4 , 5 6 , 7 4 , 6
H 5 7 2 6 , 7 5 , 7
H 6 7 1 6 , 7
Table 5. The encoded table for the 2-qubit QR decomposition.
Table 5. The encoded table for the 2-qubit QR decomposition.
QsiHT#BPs BFs
H 0 3 3 0 , 2 1 , 3 0 , 1
H 1 3 2 2 , 3 1 , 3
H 2 3 1 2 , 3
Table 6. The second encoded table for the 2-qubit QR decomposition.
Table 6. The second encoded table for the 2-qubit QR decomposition.
QsiHT#BPs BFs
H 0 3 3 0 , 1 2 , 3 0 , 2
H 1 3 2 2 , 3 1 , 3
H 2 3 1 2 , 3
Table 7. The angles of the rotations in the circuit of Figure 17 with encoding Table 5.
Table 7. The angles of the rotations in the circuit of Figure 17 with encoding Table 5.
φ k ϑ k ( γ k ) ψ k k
H 0 3 108.4349 ° 27.7913 ° 18.4349 ° 1
116.5651 ° 48.1897 ° 26.5651 ° 2
0 ° 41.4976 ° 0 ° 3
H 1 3 74.9816 ° 47.8430 ° 226.9092 ° 1
54.2886 ° 50.8961 ° 54.2886 ° 2
H 2 3 258.1788 ° 70.1975 ° 37.7291 ° 1
Table 8. The angles of the rotations in the circuit of Figure 17 with encoding Table 6.
Table 8. The angles of the rotations in the circuit of Figure 17 with encoding Table 6.
φ k ϑ k ( γ k ) ψ k k
H 0 3 90 ° 33.6901 ° 0 ° 1
135 ° 54.7356 ° 8.1301 ° 2
0 ° 37.2187 ° 0 ° 3
H 1 3 149.0489 ° 41.9525 ° 62.8419 ° 1
180 ° 42.6315 ° 180 ° 2
H 2 3 145.1403 ° 45.9683 ° 193.8652 ° 1
Table 9. Data of the 3-qubit QsiHT-based circuit for a 3-qubit complex operation.
Table 9. Data of the 3-qubit QsiHT-based circuit for a 3-qubit complex operation.
QsiHT# R y # R z # Rotations# Non-Adjacent BPs# M Φ # K Φ Depth
H 6 7   1230103
H 5 7 2460116
H 4 7 3690306
H 3 7 48120139
H 2 7 510150419
H 1 7 6121803312
H 0 7 714210709
Total285484020854
Table 10. The encoding table of all fifteen QsiHTs by the fast paths, which use the 4-qubit QR decomposition.
Table 10. The encoding table of all fifteen QsiHTs by the fast paths, which use the 4-qubit QR decomposition.
Q s i H T # BPs
H 0 15 15 0 , 1     2 , 3 4 , 5 6 , 7 8 , 9     10 , 11 12 , 13 14 , 15
0 , 2   4 , 6 8 , 10 12 , 14 0 , 4     8 , 12 0 , 8
H 1 15 14 2 , 3 6 , 7 10 , 11 14 , 15 1 , 3 5 , 7 9 , 11 13 , 15
4 , 5 12 , 13 1 , 5     9 , 13     8 , 9 1 , 9    
H 2 15 13 4 , 5 8 , 9     10 , 11 12 , 13 14 , 15 4 , 6 12 , 14 6 , 7
8 , 12 3 , 7 8 , 10 2 , 3 2 , 10
H 3 15 12 4 , 5 6 , 7 8 , 9 10 , 11 12 , 13 5 , 7 9 , 11 12 , 14
14 , 15 3 , 7 11 , 15     3 , 11
H 4 15 11 4 , 5 6 , 7 8 , 9     10 , 11 12 , 13 14 , 15 4 , 6 8 , 10
12 , 14 8 , 12 4 , 14
H 5 15 10 6 , 7 8 , 9     10 , 11 14 , 15 5 , 7 8 , 10     12 , 14 8 , 12
12 , 13 5 , 13
H 6 15 9 6 , 7 8 , 9     10 , 11 12 , 13 14 , 15 8 , 10 12 , 14 10 , 14
6 , 14
H 7 15 8 8 , 9 10 , 11 12 , 13 14 , 15 9 , 11 13 , 15 11 , 15 7 , 15
H 8 15 7 8 , 9     10 , 11 12 , 13 14 , 15 8 , 10 12 , 14 8 , 12
H 9 15 6 10 , 11 14 , 15 9 , 11 13 , 15 12 , 13 9 , 13
H 10 15 5 10 , 11 12 , 13 14 , 15 12 , 14 10 , 14    
H 11 15 4 12 , 13 14 , 15 13 , 15 11 , 15
H 12 15 3 12 , 13 14 , 15 12 , 14
H 13 15 2 14 , 15 13 , 15
H 14 15 1 14 , 15 Total #120 BPs
Table 11. Comparison of circuits for two methods of QR decomposition.
Table 11. Comparison of circuits for two methods of QR decomposition.
MethodGray Code # R y # R z # Permutation/X# P φ # All GatesDepth
n = 3
QsiHT 285601853 × 28
XFCD + 2856281113
n = 4
QsiHT 120240013613 × 120
XFCD + 1202401301491
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Grigoryan, A.M. New Permutation-Free Quantum Circuits for Implementing 3- and 4-Qubit Unitary Operations. Information 2025, 16, 621. https://doi.org/10.3390/info16070621

AMA Style

Grigoryan AM. New Permutation-Free Quantum Circuits for Implementing 3- and 4-Qubit Unitary Operations. Information. 2025; 16(7):621. https://doi.org/10.3390/info16070621

Chicago/Turabian Style

Grigoryan, Artyom M. 2025. "New Permutation-Free Quantum Circuits for Implementing 3- and 4-Qubit Unitary Operations" Information 16, no. 7: 621. https://doi.org/10.3390/info16070621

APA Style

Grigoryan, A. M. (2025). New Permutation-Free Quantum Circuits for Implementing 3- and 4-Qubit Unitary Operations. Information, 16(7), 621. https://doi.org/10.3390/info16070621

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

Article Metrics

Back to TopTop