Skip to content
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

Template structure simplification #317

Merged
merged 14 commits into from
Sep 11, 2024
Merged

Commits on Sep 4, 2024

  1. ♻️ Refactor the Template hierarchy

    It has been a few weeks I am thinking about that, and a discussion with
    Kabir yesterday finally convinced me that refactoring the Template
    hierarchy was a good idea.
    
    The main reason for that refactor is the uneeded complexity of the old
    Template code: we only need to represent "simple" templates such as
    logical qubits and their sides. Being able to represent arbitrary
    templates using the ComposedTemplate class was nice, but not a
    requirement. With the need to query templates about their middle lines,
    sides, and likely other properties in the future that were not easily
    implementable (or even correctly defined) for all the possible
    ComposedTemplate instance, removing that intermediary seemed like
    a necessity.
    
    This (rather large, sorry) commit aims at greatly simplifying the
    Template-related module. The interfaces are left unchanged, which
    reduces by a lot the possibility of introducing errors with this
    refactor and reduces the number of changes.
    nelimee committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    638ed9b View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. Configuration menu
    Copy the full SHA
    89d00d1 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2024

  1. Configuration menu
    Copy the full SHA
    aa7abd8 View commit details
    Browse the repository at this point in the history
  2. Update src/tqec/templates/__init__.py

    Co-authored-by: Yiming Zhang <61700160+inmzhang@users.noreply.github.com>
    nelimee and inmzhang authored Sep 7, 2024
    Configuration menu
    Copy the full SHA
    3f8caa0 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Configuration menu
    Copy the full SHA
    f31c51b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1775337 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0724ecb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    846f2a2 View commit details
    Browse the repository at this point in the history
  5. Implement tests

    nelimee committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    6de4674 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. 🔥 Remove dead code

    nelimee committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    84002fa View commit details
    Browse the repository at this point in the history
  2. ✅ Adding more tests

    nelimee committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    68cc112 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5ba20fb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    db26f81 View commit details
    Browse the repository at this point in the history
  5. ✅ More tests

    nelimee committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    cf347f3 View commit details
    Browse the repository at this point in the history