4 Created on Tue Jun 30 15:44:26 2020 5 Copyright 2020 Peter Rakyta, Ph.D. 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 11 http://www.apache.org/licenses/LICENSE-2.0 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 19 You should have received a copy of the GNU General Public License 20 along with this program. If not, see http://www.gnu.org/licenses/. 22 @author: Peter Rakyta, Ph.D. 31 from .qgd_R_Wrapper
import qgd_R_Wrapper
51 super().
__init__(qbit_num, target_qbit)
68 return super().calc_one_qubit_u3(ThetaOver2, Phi)
74 def apply_to( self, parameters_mtx, unitary_mtx):
77 super().
apply_to( parameters_mtx, unitary_mtx )
127 parameters_gate = np.reshape( parameters_gate, (parameters_gate.size,) )
129 return parameters_gate
def __init__(self, qbit_num, target_qbit)
Constructor of the class.
def Extract_Parameters(self, parameters_circuit)
def apply_to(self, parameters_mtx, unitary_mtx)
def set_Control_Qbit(self, control_qbit_in)
def get_Parameter_Start_Index(self)
def get_Gate_Kernel(self, ThetaOver2, Phi)
def get_Matrix(self, parameters_mtx)
def get_Parameter_Num(self)
A QGD Python interface class for the qgd_R.
def get_Target_Qbit(self)
def get_Control_Qbit(self)
def set_Target_Qbit(self, target_qbit_in)