Open timohillmann opened 8 months ago
Can you upload the surface code PCMs you are using?
It's the on-branch l4_dev
pcms stored at python_test/pcms/hx_surface_3.npz
By the way, I saw it eventually terminated with
Traceback (most recent call last):
File "/Users/timo/.vscode/extensions/ms-python.debugpy-2023.3.13341006-darwin-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/launcher/debuggee.py", line 190, in kill
os.killpg(process.pid, signal.SIGKILL)
PermissionError: [Errno 1] Operation not permitted
Stack where logged:
File "/Users/timo/.vscode/extensions/ms-python.debugpy-2023.3.13341006-darwin-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/launcher/debuggee.py", line 192, in kill
log.swallow_exception("Failed to kill {0}", describe())
File "/Users/timo/.vscode/extensions/ms-python.debugpy-2023.3.13341006-darwin-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/common/log.py", line 215, in swallow_exception
_exception(format_string, *args, **kwargs)
All of d=3 surface code syndromes work for me.
I have found that error = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0])
for d=5 causes the decoder to crash though in Peeling mode
It works in all cases for me if you set uf_method = "peeling"
and bits_per_step = 1
.
There is something going wrong with error = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0])
on the d=5 surface code when the bits_per_step > 5
. Will investigate.
I get stuck even with bits_per_step = 1
. For the d=3
surface code, the following error causes a problem [0 0 0 0 0 0 0 0 1 0 0 1 0]
Note that I am running python/3.11.7
on intel-mac.
Can you try in a fresh python virtual environment?
With a fresh environment, d = 3, 4, 5 work with bit_per_step = 1
. Thanks
For some syndromes, the BeliefFind decoder seems to get stuck in
peeling
mode and will not terminate. This error does occur ininversion
mode. In particular, I find that for the example below thei = 8
that is the syndromes = [0 0 1 0 0 0]
is problematic.To reproduce run