Closed Strilanc closed 8 months ago
Thanks, Craig! @phfaist how should we include code blocks? Should we just include the pictures of the circuits?
You're right, the encoder you think is wrong is not "four CCZ" but four more general control gates:
Hi both,
Thanks for the input! Sure, the circuit can go as a figure.
I'm thinking about how best to include code blocks on a code page. I'm not sure they'd appear well in the current layout and they might be a bit too detailed for what we're currently aiming for, and typing them directly in the YAML doesn't seem like an optimal solution. I think it would be great to be able to include pieces of code or other documents (e.g. pdf notes) as "attachments" that can be viewed and/or downloaded interactively. That's on the roadmap :)
Craig, would it be possible for you to make the figures for these circuits? You'd be acknowledged of course by being a contributor, but also, if you want, as a private comm citation. Thanks!
On Fri, Mar 15, 2024, 17:13 Philippe Faist @.***> wrote:
Hi both,
Thanks for the input! Sure, the circuit can go as a figure.
I'm thinking about how best to include code blocks on a code page. I'm not sure they'd appear well in the current layout and they might be a bit too detailed for what we're currently aiming for, and typing them directly in the YAML doesn't seem like an optimal solution. I think it would be great to be able to include pieces of code or other documents (e.g. pdf notes) as "attachments" that can be viewed and/or downloaded interactively. That's on the roadmap :)
— Reply to this email directly, view it on GitHub https://github.com/errorcorrectionzoo/eczoo_data/pull/334#issuecomment-2000447071, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCCKUXGCIOJDIJMVUVBQ3LYYNQALAVCNFSM6AAAAAA6HYDMH2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBQGQ2DOMBXGE . You are receiving this because you commented.Message ID: @.***>
Closing so someone can realize these circuits as pictures.
This PR adds circuit diagrams, parseable stim circuits, and quirk links for the encoders on the [[5,1,3]] page. It also adds a 6-two-qubit gate encoder.
I ran into several problems trying to make these edits that mean the PR is incomplete and needs to pushed through be someone more knowledgeable about the workings of the site.
First, I wasn't able to get yarn working. So I have no way to preview the page. I have no idea if this looks right or is getting completely garbled. (This has always been my experience with node. And all the help about it that I find online is asking me to do dangerous things like pipe curl directly into bash.)
Second, I don't know what syntax you use to define a code block. The circuit diagrams and the computer-parsable stim circuits should be in code blocks.
Third, I'm not sure how to add the circuits in a verified way where anything actually checks that they work? Any kind of big repository of circuits like this needs some way to make sure its contents are actually accurate, or it will be full of mistakes. Circuits are incredibly easy to typo, and very hard to debug when there is a typo. (As an example... I am extremely suspicious that the "four CCZ" decoder circuit claim on the [[5,1,3]] page is totally wrong.) I wrote code to verify the circuits I'm adding:
Probably there should actually be special functionality for adding circuits, where the diagrams and source code and external URLs and verification all source from a common syntactical block unique to the site.