Skip to content

Commit e63925a

Browse files
committed
Use get_stabilizer_schedule_x/z and update comments
Signed-off-by: Ben Howe <bhowe@nvidia.com>
1 parent 1faa3ed commit e63925a

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

libs/qec/unittests/realtime/app_examples/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,10 @@ if(TARGET cudaq-qec-realtime-decoding-server-cqr)
280280
NAME app_examples.surface_code-1-cqr-two-process-test-distance-3
281281
COMMAND
282282
# The app seeds the simulator (--seed, default 42), so the run is
283-
# deterministic: ~36 non-zero and ~39 corrections at 1000 shots. The
283+
# deterministic: ~10 non-zero and ~67 corrections at 1000 shots. The
284284
# thresholds (non-zero <= 60, corrections >= 30) leave margin while
285-
# still catching a broken decode path (which produces ~150+ / ~0).
285+
# still catching a broken decode path (which applies ~0 corrections,
286+
# leaving all ~70 raw logical errors uncorrected).
286287
bash "${CMAKE_CURRENT_SOURCE_DIR}/surface_code-1-cqr-two-process-test.sh"
287288
${CMAKE_CURRENT_BINARY_DIR}/surface_code-1-cqr
288289
3 60 30

libs/qec/unittests/realtime/app_examples/surface_code-1.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@ experiment make_experiment(const cudaq::qec::code &code,
338338
exp.num_rounds = static_cast<std::size_t>(opts.num_rounds);
339339
exp.num_logical = static_cast<std::size_t>(opts.num_logical);
340340

341-
auto parity_x = code.get_parity_x();
342-
auto parity_z = code.get_parity_z();
343-
exp.x_vec.assign(parity_x.data(), parity_x.data() + parity_x.size());
344-
exp.z_vec.assign(parity_z.data(), parity_z.data() + parity_z.size());
341+
auto schedule_x = code.get_stabilizer_schedule_x();
342+
auto schedule_z = code.get_stabilizer_schedule_z();
343+
exp.x_vec.assign(schedule_x.data(), schedule_x.data() + schedule_x.size());
344+
exp.z_vec.assign(schedule_z.data(), schedule_z.data() + schedule_z.size());
345345

346346
const bool is_z_prep = state_prep == cudaq::qec::operation::prep0 ||
347347
state_prep == cudaq::qec::operation::prep1;

0 commit comments

Comments
 (0)