-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #467 from sfc-aqua/connect-backend-and-stationary-…
…qubit-rebased Connect backend and stationary qubit (new)
- Loading branch information
Showing
42 changed files
with
1,621 additions
and
3,293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
#pragma once | ||
#include "ErrorTracking/Backend.h" | ||
#include "ErrorTracking/Configuration.h" | ||
#include "interfaces/IConfiguration.h" | ||
#include "interfaces/IQuantumBackend.h" | ||
#include "interfaces/IQubit.h" | ||
#include "interfaces/IQubitId.h" | ||
|
||
// the namespace for exposing the backend | ||
namespace quisp::backends { | ||
|
||
using abstract::EigenvalueResult; | ||
using abstract::IConfiguration; | ||
using abstract::IQuantumBackend; | ||
using abstract::IQubit; | ||
using abstract::IQubitId; | ||
using abstract::MeasurementOutcome; | ||
using abstract::MeasureXResult; | ||
using abstract::MeasureYResult; | ||
using abstract::MeasureZResult; | ||
using error_tracking::ErrorTrackingBackend; | ||
using error_tracking::ErrorTrackingConfiguration; | ||
using error_tracking::ErrorTrackingQubit; | ||
|
||
} // namespace quisp::backends |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#pragma once | ||
|
||
#include "../interfaces/IConfiguration.h" | ||
namespace quisp::backends::error_tracking { | ||
/** | ||
@brief Configuration class contains all parameters and provides the way to retrieve it | ||
*/ | ||
class ErrorTrackingConfiguration : public abstract::IConfiguration { | ||
public: | ||
ErrorTrackingConfiguration() {} | ||
~ErrorTrackingConfiguration() {} | ||
|
||
// list up all params | ||
double memory_x_err_rate; | ||
double memory_y_err_rate; | ||
double memory_z_err_rate; | ||
double memory_excitation_rate; | ||
double memory_relaxation_rate; | ||
double memory_completely_mixed_rate; | ||
|
||
double measurement_x_err_rate; | ||
double measurement_y_err_rate; | ||
double measurement_z_err_rate; | ||
|
||
double x_gate_x_err_ratio; | ||
double x_gate_y_err_ratio; | ||
double x_gate_z_err_ratio; | ||
double x_gate_err_rate; | ||
|
||
double z_gate_x_err_ratio; | ||
double z_gate_y_err_ratio; | ||
double z_gate_z_err_ratio; | ||
double z_gate_err_rate; | ||
|
||
double h_gate_x_err_ratio; | ||
double h_gate_y_err_ratio; | ||
double h_gate_z_err_ratio; | ||
double h_gate_err_rate; | ||
|
||
double cnot_gate_iz_err_ratio; | ||
double cnot_gate_zi_err_ratio; | ||
double cnot_gate_zz_err_ratio; | ||
double cnot_gate_ix_err_ratio; | ||
double cnot_gate_xi_err_ratio; | ||
double cnot_gate_xx_err_ratio; | ||
double cnot_gate_iy_err_ratio; | ||
double cnot_gate_yi_err_ratio; | ||
double cnot_gate_yy_err_ratio; | ||
double cnot_gate_err_rate; | ||
|
||
protected: | ||
}; | ||
} // namespace quisp::backends::error_tracking |
Oops, something went wrong.