Skip to content

How do I add a circuit diagram or circuit link? #299

Description

@Strilanc

I have a [5,1,3] encoder with fewer two-qubit-gates than the referenced papers. How do I add it to the [5,1,3] page? Specifically, how do I add images and external URLs and code blocks?

image

Quirk link

import stim

print(stim.Circuit("""
    # Input: qubit 0
    # Output: A [5,1,3] code over qubits 0,1,2,3,4
    Y 0
    R 1 2 3 4
    H 2 3 4
    CZ 2 3
    CX 0 1 3 1 4 1
    CX 2 0
    CZ 0 1
    CX 3 0
    H 2 3 4
""").diagram())
q0: -Y---@-----X-@-X---
         |     | | |
q1: -R---X-X-X-|-@-|---
           | | |   |
q2: -R-H-@-|-|-@---|-H-
         | | |     |
q3: -R-H-@-@-|-----@-H-
             |
q4: -R-H-----@-------H-

There are also many highly symmetrical ZX graphs of the encoder (up to permutation and single qubit basis change of the outputs). Examples:

image

image

Presumably there are ways to add linkable versions of these things, instead of just references to books and papers? Books and papers are great and all, but it's often difficult to find the specific figure and the representation is usually not computer parseable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions