From 717b343c10028ae9f1543dd466c0a665ca940de3 Mon Sep 17 00:00:00 2001 From: Weilei Zeng at qlab01 Date: Thu, 21 Sep 2023 19:01:11 +0800 Subject: [PATCH] add check code, then recover --- verification.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/verification.cpp b/verification.cpp index d08568e..4b4adbe 100644 --- a/verification.cpp +++ b/verification.cpp @@ -60,22 +60,21 @@ bool verify(std::string code_prefix, double & rho_x, double & rho_z, int & n_Gx, n_Gx = code.Gx.rows()*code.Gx.cols(); n_Gz = code.Gz.rows()*code.Gz.cols(); - if (data["verified"]==1 ){ + if (data["verified"]==1 ){ //skip verified codes // std::cout<<"the code has been verified. skip"<