Skip to content

Add missing test coverage for RZXCalibration builder with target#9416

Merged
mergify[bot] merged 2 commits into
Qiskit:mainfrom
mtreinish:fix-rzx-cal-build-target
Jan 23, 2023
Merged

Add missing test coverage for RZXCalibration builder with target#9416
mergify[bot] merged 2 commits into
Qiskit:mainfrom
mtreinish:fix-rzx-cal-build-target

Conversation

@mtreinish
Copy link
Copy Markdown
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 the GitHub Release 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
Copy Markdown
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.
@mtreinish mtreinish force-pushed the fix-rzx-cal-build-target branch from a605777 to 93e96c4 Compare January 23, 2023 11:47
@coveralls
Copy link
Copy Markdown

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
Copy Markdown
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 the GitHub Release changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants