Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
common_GROQ.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 
18 @author: Peter Rakyta, Ph.D.
19 */
24 #ifndef common_GROQ_H
25 #define common_GROQ_H
26 
27 
28 #include <omp.h>
29 #include "QGDTypes.h"
30 #include "dot.h"
31 
32 
33 #include <string>
34 #include <stdio.h>
35 #include <iostream>
36 #include <cmath>
37 #include <vector>
38 #include <cstring>
39 #include <sstream>
40 
41 #define DFE_LIB_SV "libsvDFE.so"
42 
43 
44 
45 
50 int get_initialize_id();
51 
52 
59 int init_groq_sv_lib( const int reserved_device_num, int initialize_id_in );
60 
64 void unload_groq_sv_lib();
65 
66 
67 
68 
80 void apply_to_groq_sv(int reserved_device_num, int chosen_device_num, int qbit_num, std::vector<Matrix>& u3_qbit, std::vector<int>& target_qbits, std::vector<int>& control_qbits, Matrix& quantum_state, int id_in);
81 
82 #endif
83 
void unload_groq_sv_lib()
Call to unload the programs from the reserved Groq cards.
Definition: common_GROQ.cpp:78
void apply_to_groq_sv(int reserved_device_num, int chosen_device_num, int qbit_num, std::vector< Matrix > &u3_qbit, std::vector< int > &target_qbits, std::vector< int > &control_qbits, Matrix &quantum_state, int id_in)
Call to pefrom the state vector simulation on the Groq hardware.
Custom types for the SQUANDER package.
int init_groq_sv_lib(const int reserved_device_num, int initialize_id_in)
Call to allocated Groq cards for calculations.
Double-precision complex matrix (float64).
Definition: matrix.h:38
int get_initialize_id()
Call to get the identification number of the inititalization of the library.
Definition: common_DFE.cpp:216