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

Return &[T] rather than Vec<T> and similar in getters #75

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

jlapeyre
Copy link
Collaborator

@jlapeyre jlapeyre commented Jan 22, 2024

See comments at bottom of #71

Return &[T] rather than Vec<T> and similar

There are several return types in asg.rs that are improved.
This causes a bit of a change in the API. So validate.rs is updated
External users, that is the qiskit importer, will likely need to
be updated.

This PR has been broadened in response to the immediately following comment.

Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

fwiw, this kind of thing is in many getters across the ASG

@jlapeyre
Copy link
Collaborator Author

I might as well add a commit to this PR changing the others as well.

@jlapeyre jlapeyre marked this pull request as draft January 22, 2024 18:34
@jlapeyre jlapeyre marked this pull request as ready for review February 7, 2024 18:30
There are several return types in asg.rs that are improved.
This causes a bit of a change in the API. So validate.rs is updated
External users, that is the qiskit importer, will likely need to
be updated.
@jlapeyre jlapeyre changed the title Improve getter for asg::Barrier Return &[T] rather than Vec<T> and similar in getters Feb 7, 2024
@jlapeyre
Copy link
Collaborator Author

jlapeyre commented Feb 7, 2024

This PR was approved. But the additional changes mentioned in #75 (review) were added in 6920e11

@jlapeyre jlapeyre merged commit d1b390f into main Feb 7, 2024
7 checks passed
@jlapeyre jlapeyre deleted the barrier-getter branch February 7, 2024 20:52
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.

None yet

2 participants