Skip to content

Conversation

garrison
Copy link
Member

More info at Qiskit/qiskit#12581

@garrison garrison added the stable backport potential Suitable to be backported to most recent stable branch by Mergify label Jun 14, 2024
@garrison
Copy link
Member Author

garrison commented Jun 14, 2024

Good thing we require coverage to be 100%; otherwise we might not have noticed that the barriers are not being recombined in my first iteration of fixing this. Of course, this suggests that we really should have a test that barriers are being recombined correctly.

We need to have a fix of this in the latest CKT release by the time Qiskit 1.2 is released on August 15 (roughly two months from now).

The line I had not considered in my original patch was
https://github.com/Qiskit-Extensions/circuit-knitting-toolbox/blob/d6a865470a3025c950b0938be40e4b3cb98b9ab3/circuit_knitting/utils/transforms.py#L303

@garrison garrison changed the title transforms.py: Convert the barrier uuid label into a string transforms.py: Avoid setting the barrier to be a uuid object Jun 14, 2024
@garrison garrison marked this pull request as draft June 14, 2024 21:50
@garrison garrison added this to the 0.7.3 milestone Jun 15, 2024
@garrison garrison marked this pull request as ready for review June 15, 2024 00:49
@coveralls
Copy link

coveralls commented Jun 15, 2024

Pull Request Test Coverage Report for Build 9524103161

Details

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 9479788750: 0.0%
Covered Lines: 2410
Relevant Lines: 2410

💛 - Coveralls

@garrison
Copy link
Member Author

I'm going to merge this immediately so CI passes once again.

@garrison garrison merged commit 654f02f into main Jun 15, 2024
@garrison garrison deleted the uuid_str branch June 15, 2024 00:56
mergify bot pushed a commit that referenced this pull request Jun 15, 2024
* transforms.py: Convert the barrier uuid label into a string

More info at Qiskit/qiskit#12581

* Fix `isinstance(label, UUID)` check

(cherry picked from commit 654f02f)
garrison added a commit that referenced this pull request Jun 15, 2024
…627)

* transforms.py: Convert the barrier uuid label into a string

More info at Qiskit/qiskit#12581

* Fix `isinstance(label, UUID)` check

(cherry picked from commit 654f02f)

Co-authored-by: Jim Garrison <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stable backport potential Suitable to be backported to most recent stable branch by Mergify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants