From d216f38d1733a8866498d84e3834e8782ebe6a86 Mon Sep 17 00:00:00 2001 From: WrathfulSpatula Date: Sun, 15 Dec 2024 07:03:49 -0500 Subject: [PATCH] For quadrants, round row half down and column half up --- rcs/sycamore_2019_elided_quadrant.py | 2 +- rcs/sycamore_2019_elided_quadrant_time.py | 2 +- rcs/sycamore_2019_patch_quadrant.py | 2 +- rcs/sycamore_2019_patch_quadrant_time.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rcs/sycamore_2019_elided_quadrant.py b/rcs/sycamore_2019_elided_quadrant.py index b9ce719..d852df2 100644 --- a/rcs/sycamore_2019_elided_quadrant.py +++ b/rcs/sycamore_2019_elided_quadrant.py @@ -85,7 +85,7 @@ def bench_qrack(width, depth): row_len, col_len = factor_width(width) row_bound = row_len >> 1 - col_bound = col_len >> 1 + col_bound = (col_len + 1) >> 1 lcv_range = range(width) last_gates = [] diff --git a/rcs/sycamore_2019_elided_quadrant_time.py b/rcs/sycamore_2019_elided_quadrant_time.py index 474ca26..6f30743 100644 --- a/rcs/sycamore_2019_elided_quadrant_time.py +++ b/rcs/sycamore_2019_elided_quadrant_time.py @@ -87,7 +87,7 @@ def bench_qrack(width, depth): row_len, col_len = factor_width(width) row_bound = row_len >> 1 - col_bound = col_len >> 1 + col_bound = (col_len + 1) >> 1 lcv_range = range(width) last_gates = [] diff --git a/rcs/sycamore_2019_patch_quadrant.py b/rcs/sycamore_2019_patch_quadrant.py index 76a35d3..feb18a7 100644 --- a/rcs/sycamore_2019_patch_quadrant.py +++ b/rcs/sycamore_2019_patch_quadrant.py @@ -53,7 +53,7 @@ def bench_qrack(width, depth): row_len, col_len = factor_width(width) row_bound = row_len >> 1 - col_bound = col_len >> 1 + col_bound = (col_len + 1) >> 1 lcv_range = range(width) last_gates = [] diff --git a/rcs/sycamore_2019_patch_quadrant_time.py b/rcs/sycamore_2019_patch_quadrant_time.py index f0531d2..ece8890 100644 --- a/rcs/sycamore_2019_patch_quadrant_time.py +++ b/rcs/sycamore_2019_patch_quadrant_time.py @@ -51,7 +51,7 @@ def bench_qrack(width, depth): row_len, col_len = factor_width(width) row_bound = row_len >> 1 - col_bound = col_len >> 1 + col_bound = (col_len + 1) >> 1 lcv_range = range(width) last_gates = []