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

feat!: remove the Eq type bound. #1364

Merged
merged 11 commits into from
Jul 26, 2024
Merged

feat!: remove the Eq type bound. #1364

merged 11 commits into from
Jul 26, 2024

Commits on Jul 25, 2024

  1. remove TypeBound::Eq from rust

    ss2165 committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    b2ffd0f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    81ef15d View commit details
    Browse the repository at this point in the history
  3. bump schema versions

    ss2165 committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    8be7b9c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e1e8b3f View commit details
    Browse the repository at this point in the history
  5. Apply suggestions from code review

    Co-authored-by: Agustín Borgna <121866228+aborgna-q@users.noreply.github.com>
    ss2165 and aborgna-q committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    8bfde8a View commit details
    Browse the repository at this point in the history
  6. Revert "bump schema versions"

    This reverts commit 8be7b9c.
    ss2165 committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    ff874f3 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2024

  1. chore(rs): hugr 0.9.1 patch release (#1366)

    This is a patch release including only some non-breaking changes since
    0.9.0.
    
    ## New release
    * `hugr`: 0.9.0 -> 0.9.1
    * `hugr-core`: 0.6.0 -> 0.6.1
    * `hugr-passes`: 0.6.0 -> 0.6.1
    * `hugr-cli`: 0.2.0 -> 0.2.1
    
    <details><summary><i><b>Changelog</b></i></summary><p>
    
    ## `hugr`
    <blockquote>
    
    ## 0.9.1 (2024-07-25)
    
    ### Bug Fixes
    
    - Dfg wrapper build handles incorrect output wire numbers
    ([#1332](#1332))
    - Sibling extension panics while computing signature with non-dataflow
    nodes ([#1350](#1350))
    </blockquote>
    
    ## `hugr-core`
    <blockquote>
    
    ## 0.6.1 (2024-07-25)
    
    ### Bug Fixes
    
    - Dfg wrapper build handles incorrect output wire numbers
    ([#1332](#1332))
    - Sibling extension panics while computing signature with non-dataflow
    nodes ([#1350](#1350))
    </blockquote>
    
    ## `hugr-passes`
    <blockquote>
    
    ## 0.6.1 (2024-07-25)
    
    Nothing here.
    </blockquote>
    
    ## `hugr-cli`
    <blockquote>
    
    ## 0.2.1 (2024-07-25)
    
    Nothing here.
    </blockquote>
    
    
    </p></details>
    
    ---
    This PR was generated by a human.
    
    ---------
    
    Co-authored-by: Seyon Sivarajah <seyon.sivarajah@quantinuum.com>
    aborgna-q and ss2165 committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    f04cdb4 View commit details
    Browse the repository at this point in the history
  2. docs: Update instructions for doing patch releases (#1368)

    Updates the instructions to use `release-plz` locally. This is easier
    and less error prone, since it can reuse the configuration used for
    normal releases.
    aborgna-q authored and ss2165 committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    7f51c57 View commit details
    Browse the repository at this point in the history
  3. chore(spec): Clean up non-local edges CFG example (#1369)

    Closes #248 
    
    There are still some visual glitches, but it should be more readable
    now.
    
    Adds two invisible order edges to the input nodes, changing this
    ```mermaid
    flowchart
        subgraph CFG
            direction TB
            subgraph Entry
                direction TB
                EntryIn["Input"] -- "P" --> Entry_["P?1"]
                Entry_ -- "[()|(P)]" --> EntryOut["Output"]
                F
            end
            subgraph BB1
                direction TB
                BB1In["Input"]
                BB1_["Const"] -- "[()]" --> BB1Out["Output"]
                G -- "angle" --> BB1Out
            end
            subgraph BB2
                direction TB
                BB2In["Input"] -- "P" --> H -- "P" --> BB2_["P?2"]
                BB2_ -- "[()|()]" --> BB2Out["Output"]
            end
            subgraph BB3
                direction TB
                BB3In["Input"]
                BB3_["Const"] -- "[()]" --> BB3Out["Output"]
                C -- "angle" --> BB3Out
            end
            subgraph Exit
            end
            Entry -- "0" --> BB1
            Entry -- "1" --> BB2
            BB2 -- "0" --> BB1
            BB2 -- "1" --> BB3
            BB1 -- "0" --> Exit
            BB3 -- "0" --> Exit
        end
        A -- "P" --> CFG
        A -- "qubit" --> Rz_out["Rz"]
        CFG -- "angle" --> Rz_out
        Rz_out -- "qubit" --> B
        A == "angle" ==> F
        F == "angle" ==> G
        linkStyle 12,13,14,15,16,17 stroke:#ff3,stroke-width:4px;
    ```
    into this
    ```mermaid
    flowchart
        subgraph CFG
            direction TB
            subgraph Entry
                direction TB
                EntryIn["Input"] -- "P" --> Entry_["P?1"]
                Entry_ -- "[()|(P)]" --> EntryOut["Output"]
                F
            end
            subgraph BB1
                direction TB
                BB1In["Input"]
                BB1_["Const"] -- "[()]" --> BB1Out["Output"]
                G -- "angle" --> BB1Out
                BB1In ~~~ G
            end
            subgraph BB2
                direction TB
                BB2In["Input"] -- "P" --> H -- "P" --> BB2_["P?2"]
                BB2_ -- "[()|()]" --> BB2Out["Output"]
            end
            subgraph BB3
                direction TB
                BB3In["Input"]
                BB3_["Const"] -- "[()]" --> BB3Out["Output"]
                C -- "angle" --> BB3Out
                BB3In ~~~ C
            end
            subgraph Exit
            end
            Entry -- "0" --> BB1
            Entry -- "1" --> BB2
            BB2 -- "0" --> BB1
            BB2 -- "1" --> BB3
            BB1 -- "0" --> Exit
            BB3 -- "0" --> Exit
        end
        A -- "P" --> CFG
        A -- "qubit" --> Rz_out["Rz"]
        CFG -- "angle" --> Rz_out
        Rz_out -- "qubit" --> B
        A == "angle" ==> F
        F == "angle" ==> G
        linkStyle 12,13,14,15,16,17 stroke:#ff3,stroke-width:4px;
    ```
    aborgna-q authored and ss2165 committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    eb62659 View commit details
    Browse the repository at this point in the history
  4. fix(hugr-core)!: bump serialisation version with no upgrade path (#1352)

    Since we are breaking serialisation I edited most test cases to use v3.
    The single test case which I deleted was testing that we were able to l
    deserialise from an older version, so is now redundant. This should have
    been done when removing `CustomTypeArg`.
    
    BREAKING CHANGE: All Hugrs serialised with earlier versions will fail to
    deserialise
    
    ---------
    
    Co-authored-by: Agustín Borgna <121866228+aborgna-q@users.noreply.github.com>
    Co-authored-by: Seyon Sivarajah <seyon.sivarajah@quantinuum.com>
    3 people committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    0800966 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5516fdb View commit details
    Browse the repository at this point in the history