-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
naive_encoding_circuit failes when rank(parity_checks) < length(parity_checks)
#190
Comments
Could you upload the two npz files from the first two lines of the REPL screenshot? It seems there is a problem with this line QuantumClifford.jl/src/ecc/circuits.jl Line 53 in 55fc876
|
Actually, this happens almost certainly due to redundant rows in the parity check matrix you are using. Presumably, there are 300 parity checks. However, probably only 296 of them are actually independent. That does not matter too much for the syndrome measurement circuit -- we happen to perform 4 redundant measurements, big deal. But it would matter to the encoding circuit. To verify that this is indeed the case, check what the |
|
this seems to be separate issue (I reported it just now in #191) As a temporary workaround just do |
Yup, this is almost certainly due to the lookup table decoder. I messaged on zulip about it. I will change the name of this issue to track more carefully the particular bug that was initially reported. |
rank(parity_checks) < length(parity_checks)
All we need to do here is to double check that we do not have over-determined system. Basically check
|
When trying to generate encoding circuits for some LDPC codes, I'm getting a bounds error:
Below is me trying this with three different codes:
I don't think the problem is with how I'm constructing the tableaux, but for thoroughness, here is my personal function
stab_from_cxcz()
The text was updated successfully, but these errors were encountered: