Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
SYC.h
Go to the documentation of this file.
1 /*
2 Created on Fri Jun 26 14:13:26 2020
3 Copyright 2020 Peter Rakyta, Ph.D.
4 
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8 
9  http://www.apache.org/licenses/LICENSE-2.0
10 
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 
17 @author: Peter Rakyta, Ph.D.
18 */
23 #ifndef SYC_H
24 #define SYC_H
25 
26 #include "matrix.h"
27 #include "Gate.h"
28 #define _USE_MATH_DEFINES
29 #include <math.h>
30 
31 
32 
36 class SYC: public Gate {
37 
38 protected:
39 
40 
41 public:
42 
46 SYC();
47 
48 
55 SYC(int qbit_num_in, int target_qbit_in, int control_qbit_in);
56 
60 ~SYC();
61 
65 Matrix gate_kernel(const Matrix_real& precomputed_sincos) override;
66 Matrix_float gate_kernel(const Matrix_real_float& precomputed_sincos) override;
67 Matrix inverse_gate_kernel(const Matrix_real& precomputed_sincos) override;
68 Matrix_float inverse_gate_kernel(const Matrix_real_float& precomputed_sincos) override;
69 
70 
71 
76 SYC* clone() override;
77 
78 
79 };
80 
81 #endif //SYC
Header file for a class for the representation of general gate operations.
Class to store single-precision real arrays and properties.
SYC()
Nullary constructor of the class.
Definition: SYC.cpp:35
Matrix inverse_gate_kernel(const Matrix_real &precomputed_sincos) override
Definition: SYC.cpp:147
Header file of complex array storage array with automatic and thread safe reference counting...
~SYC()
Destructor of the class.
Definition: SYC.cpp:105
SYC * clone() override
Call to create a clone of the present class.
Definition: SYC.cpp:163
Double-precision complex matrix (float64).
Definition: matrix.h:38
Single-precision complex matrix (float32).
Definition: matrix_float.h:41
Matrix gate_kernel(const Matrix_real &precomputed_sincos) override
Return the fixed 4x4 SYC two-qubit kernel.
Definition: SYC.cpp:135
Base class for the representation of general gate operations.
Definition: Gate.h:86
A class representing a SYC operation.
Definition: SYC.h:36
Class to store data of complex arrays and its properties.
Definition: matrix_real.h:41