Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
CRY.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 CRY_H
24 #define CRY_H
25 
26 #include "RY.h"
27 #include "CNOT.h"
28 #include "matrix.h"
29 #include "matrix_real.h"
30 #define _USE_MATH_DEFINES
31 #include <math.h>
32 
33 
37 class CRY: public RY {
38 
39 
40 public:
41 
45 CRY();
46 
47 
53 CRY(int qbit_num_in, int target_qbit_in, int control_qbit_in);
54 
58 ~CRY() override;
59 
60 
61 
66 virtual CRY* clone() override;
67 
68 
69 
70 };
71 
72 
73 #endif //CRY
74 
CRY()
Nullary constructor of the class.
Definition: CRY.cpp:31
Header file for a class representing a CNOT operation.
A class representing a CRY gate.
Definition: CRY.h:37
Header file of complex array storage array with automatic and thread safe reference counting...
~CRY() override
Destructor of the class.
Definition: CRY.cpp:76
Definition: RY.h:11
virtual CRY * clone() override
Call to create a clone of the present class.
Definition: CRY.cpp:92