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

Unbox the DAGCircuit::op_nodes iterator #13680

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

jakelishman
Copy link
Member

This allows the iterator to be (reliably) properly monomorphised into its usage sites. Since the dynamic include_directives call is almost certainly given as a literal, I would strongly expect that even the trivial overhead of the short-circuiting || operator will be compiled out in all cases.

Summary

Details and comments

@jakelishman jakelishman added Changelog: None Do not include in changelog Rust This PR or issue is related to Rust code in the repository labels Jan 17, 2025
@jakelishman jakelishman requested a review from a team as a code owner January 17, 2025 11:56
@qiskit-bot
Copy link
Collaborator

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core

This allows the iterator to be (reliably) properly monomorphised into
its usage sites.  Since the dynamic `include_directives` call is almost
certainly given as a literal, I would strongly expect that even the
trivial overhead of the short-circuiting `||` operator will be compiled
out in all cases.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12828837125

Details

  • 7 of 7 (100.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.2%) to 88.764%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 2 92.48%
Totals Coverage Status
Change from base Build 12813106471: -0.2%
Covered Lines: 72179
Relevant Lines: 81316

💛 - Coveralls

Copy link
Contributor

@ElePT ElePT left a comment

Choose a reason for hiding this comment

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

The change makes sense to me, especially in the context of #13681, but I will not merge it to give the chance to other reviewers (with stronger opinions) to take a look.

Copy link
Contributor

@kevinhartman kevinhartman left a comment

Choose a reason for hiding this comment

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

Looks good to me as well.

@kevinhartman kevinhartman added this pull request to the merge queue Jan 17, 2025
Merged via the queue into Qiskit:main with commit d374427 Jan 17, 2025
17 checks passed
@jakelishman jakelishman deleted the unbox-op_nodes branch January 17, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog Rust This PR or issue is related to Rust code in the repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants