aboutsummaryrefslogtreecommitdiff
path: root/include/core/noise.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/noise.h')
-rw-r--r--include/core/noise.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/core/noise.h b/include/core/noise.h
index 320a4ab..2bd65e1 100644
--- a/include/core/noise.h
+++ b/include/core/noise.h
@@ -8,8 +8,8 @@
struct PsiKrausOperator
{
- struct PsiMatrix matrix;
- const char* name;
+ struct PsiMatrix matrix;
+ const char* name;
};
struct PsiKrausOperator psi_new_kraus_operator(const char* name, struct PsiMatrix matrix);
@@ -17,10 +17,10 @@ void psi_free_kraus_operator(struct PsiKrausOperator* op);
struct PsiNoiseChannel
{
- const char* name;
- struct PsiKrausOperator* operators;
- size_t operator_count;
- size_t num_qubits;
+ const char* name;
+ struct PsiKrausOperator* operators;
+ size_t operator_count;
+ size_t num_qubits;
};
struct PsiNoiseChannel psi_new_noise_channel(const char* name,
@@ -38,9 +38,9 @@ struct PsiNoiseChannel psi_generalised_amplitude_damping_channel(double p, doubl
struct PsiDensityMatrix
{
- struct PsiComplex* data;
- size_t dim;
- size_t num_qubits;
+ struct PsiComplex* data;
+ size_t dim;
+ size_t num_qubits;
};
struct PsiDensityMatrix psi_new_density_matrix(size_t num_qubits);