sys-sage
Loading...
Searching...
No Matches
iqm-parser.hpp
Go to the documentation of this file.
1
6#ifndef IQM_PARSER_HPP
7#define IQM_PARSER_HPP
8
9#include <fstream>
10#include <iostream>
11
12#include <nlohmann/json.hpp>
13
14#include "Component.hpp"
15#include "QuantumBackend.hpp"
16#include "Qubit.hpp"
17#include "CouplingMap.hpp"
18
19using json = nlohmann::json;
20
21namespace sys_sage {
22 //user calls only these functions
23 int parseIQM(Component* parent, std::string dataSourcePath, int qcId, int tsForHistory = -1);
24 int parseIQM(QuantumBackend* parent, std::string dataSourcePath, int qcId, int tsForHistory = -1, bool createTopo = true);
25
27 {
28 public:
29
30 IQMParser(QuantumBackend* _qc,std::string filepath);
31 int CreateQcTopo();
32 int ParseDynamicData(int tsForHistory);
33 private:
34 double t1_max, t2_max, q1_fidelity_max, readout_fidelity_max;
35
36 json jsonData;
37 QuantumBackend * backend;
38 };
39} //namespace sys_sage
40
41#endif // IQM_PARSER_HPP
Definition iqm-parser.hpp:27
Represents a quantum backend device (e.g., quantum processor or simulator).
Definition QuantumBackend.hpp:25