Skip to content

Allow any op as root #112

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

Merged
merged 30 commits into from
Jun 6, 2023
Merged

Allow any op as root #112

merged 30 commits into from
Jun 6, 2023

Conversation

ss2165
Copy link
Member

@ss2165 ss2165 commented Jun 1, 2023

to allow for building non-module root HUGR

Closes #82

@ss2165 ss2165 requested review from cqc-alec and aborgna-q June 1, 2023 15:55
Copy link
Collaborator

@cqc-alec cqc-alec left a comment

Choose a reason for hiding this comment

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

magic

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.

I think there are some expects in the validation that may fail when unwrapping a parent if the node is the root (esp. in validate_intergraph_edge).
We could check that the root has no connections, but what is checked first depend on the traversal order for the node validation.

Also, I don't see where the new Options on the builder wrappers come into play.

Otherwise, this looks nice.

@ss2165
Copy link
Member Author

ss2165 commented Jun 5, 2023

Have left compositional building via graph inserting as a follow up task #120

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.

Awesome!

@ss2165 ss2165 merged commit fa39c37 into main Jun 6, 2023
@ss2165 ss2165 deleted the any-root branch June 6, 2023 10:47
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.

3 participants