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

Add missing test coverage for RZXCalibration builder with target #9416

Merged
merged 2 commits into from
Jan 23, 2023

Conversation

mtreinish
Copy link
Member

Summary

In the recently merged #9343 support for using the Target directly was added to the RZXCalibrartionBuilder family of passes. However, test coverage in that PR was omitted by mistake for that pass (other passes in the PR were covered). There was a bug in the code change introduced in that PR which caused an error on initialization if a target were specified without an InstructionScheduleMap (which was the intent of the new target kwarg). This commit fixes the logic bug in the pass and adds test coverage to ensure specifying only a target continues to work moving forward.

Details and comments

@mtreinish mtreinish added the Changelog: None Do not include in changelog label Jan 23, 2023
@mtreinish mtreinish added this to the 0.24.0 milestone Jan 23, 2023
@mtreinish mtreinish requested a review from a team as a code owner January 23, 2023 11:45
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

In the recently merged Qiskit#9343 support for using the Target directly was
added to the RZXCalibrartionBuilder family of passes. However, test
coverage in that PR was omitted by mistake for that pass (other passes
in the PR were covered). There was a bug in the code change introduced
in that PR which caused an error on initialization if a target were
specified without an InstructionScheduleMap (which was the intent of the
new target kwarg). This commit fixes the logic bug in the pass and adds
test coverage to ensure specifying only a target continues to work
moving forward.
@coveralls
Copy link

coveralls commented Jan 23, 2023

Pull Request Test Coverage Report for Build 3986520975

  • 1 of 2 (50.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.001%) to 84.925%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit/transpiler/passes/calibration/rzx_builder.py 1 2 50.0%
Totals Coverage Status
Change from base Build 3986142857: 0.001%
Covered Lines: 66707
Relevant Lines: 78548

💛 - Coveralls

Copy link
Contributor

@nkanazawa1989 nkanazawa1989 left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix. This looks good to me.

@mergify mergify bot merged commit e981b7e into Qiskit:main Jan 23, 2023
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants