tRowans / radial-codes-public

Tools for generation and study of quantum radial codes
6 stars 1 forks source link

Generation of files mtx #1

Closed AndyLiuin closed 3 hours ago

AndyLiuin commented 3 hours ago

Hi,

I'm trying to run your code and I see there is the file format mtx for QDistRnd. I'm wondering if there is a file generating mtx from, say, numpy array of parity-check matrices. Or otherwise how did you do it?

Thanks.

tRowans commented 3 hours ago

Hi,

There is a function (write_PCM_as_mtx) at line 77 of generation/codegen.py that does this. It takes some extra arguments as well but this is just for writing some extra information about the codes in the mtx header and isn't needed for QDistRnd. You could edit it to get a minimal version that just takes H and pauli which should do exactly what you ask.

AndyLiuin commented 2 hours ago

Thanks!!!

esabo commented 1 hour ago

Note that QDistRnd (in GAP) is extremely slow. We've rewritten an optimized version of it from scratch which is multithreaded in Julia. Hope to have it polished for general use by the end of the month, but if you have some test cases you'd care to run we can set that up.