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: expand box types and match order #15

Merged
merged 3 commits into from
Sep 19, 2023
Merged

Conversation

johnchildren
Copy link
Contributor

  • Expand box types to support more (but not all) of the current possible pytket box types.
  • Re-order the OpType variants to match those of the boxes.

- Expand box types to support more (but not all) of the current possible
  pytket box types.
- Re-order the OpType variants to match those of the boxes.
src/circuit_json.rs Outdated Show resolved Hide resolved
@aborgna-q aborgna-q self-requested a review September 8, 2023 16:10
Copy link
Collaborator

@aborgna-q aborgna-q left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

/// NYI
CliffBox,

/// See \ref CustomGate
CustomGate,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not needed anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell CustomGate is the same as Composite I believe.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

50788ab Fixed here

src/circuit_json.rs Outdated Show resolved Hide resolved
src/circuit_json.rs Show resolved Hide resolved
@johnchildren johnchildren added this pull request to the merge queue Sep 19, 2023
Merged via the queue into main with commit fc160a2 Sep 19, 2023
5 checks passed
@johnchildren johnchildren deleted the feat/expand-box-types branch September 19, 2023 17:20
@github-actions github-actions bot mentioned this pull request Sep 19, 2023
github-merge-queue bot pushed a commit that referenced this pull request Oct 20, 2023
## 🤖 New release
* `tket-json-rs`: 0.1.1 -> 0.2.0 (⚠️ API breaking changes)

### ⚠️ `tket-json-rs` breaking changes

```
--- failure enum_struct_variant_field_added: pub enum struct variant field added ---

Description:
An enum's exhaustive struct variant has a new field, which has to be included when constructing or matching on this variant.
        ref: https://doc.rust-lang.org/reference/attributes/type_system.html#the-non_exhaustive-attribute
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.24.0/src/lints/enum_struct_variant_field_added.ron

Failed in:
  field cx_config of variant OpBox::PauliExpBox in /tmp/.tmpycvRG8/tket-json-rs/src/circuit_json.rs:109
  field control_state of variant OpBox::QControlBox in /tmp/.tmpycvRG8/tket-json-rs/src/circuit_json.rs:166
```

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

## 0.2.0 (2023-10-16)

### Features

- Expand box types and match order
([#15](#15))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants