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

Allow partition_labels to be determined automatically in partition_problem #367

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

garrison
Copy link
Member

... and introduce TwoQubitQPDGate.from_instruction.

I've been working on a PR that introduces a how-to for placing single-qubit wire cuts based on #326. In the course of completing that, I've realized that it would be very nice to have the feature introduced in the current PR, hence its addition to the 0.3 milestone. Hopefully I can convince you quickly of its value 🙂. I'll open the other PR shortly. It doesn't strictly depend on this, but (as you will see when I do), it becomes much nicer with this.

@garrison garrison added enhancement New feature or request cutting QPD-based circuit cutting code labels Aug 16, 2023
@garrison garrison added this to the 0.3.0 milestone Aug 16, 2023
@garrison garrison requested a review from caleb-johnson August 16, 2023 20:30
@coveralls
Copy link

Pull Request Test Coverage Report for Build 5883555891

  • 15 of 15 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 91.17%

Totals Coverage Status
Change from base Build 5871524392: 0.02%
Covered Lines: 2705
Relevant Lines: 2967

💛 - Coveralls

@@ -26,7 +26,7 @@
from qiskit.quantum_info import PauliList

from ..utils.observable_grouping import observables_restricted_to_subsystem
from ..utils.transforms import separate_circuit
from ..utils.transforms import separate_circuit, _partition_labels_from_circuit
Copy link
Collaborator

@caleb-johnson caleb-johnson Aug 16, 2023

Choose a reason for hiding this comment

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

Maybe we should make this function public in another PR as well?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we're in a time crunch, we can push this through and make that function public next release. I'd be fine with that too. Up to you

@caleb-johnson
Copy link
Collaborator

This is great. I just had one concern about importing the hidden function.

I think maybe we leave it as-is for now and consider where the partition_labels_from_circuit function should live and make it public in 0.4?

@garrison
Copy link
Member Author

I think maybe we leave it as-is for now and consider where the partition_labels_from_circuit function should live and make it public in 0.4?

Yeah, I think this is the best plan. Thank you for the speedy review!

Copy link
Collaborator

@caleb-johnson caleb-johnson left a comment

Choose a reason for hiding this comment

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

Good ideas! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cutting QPD-based circuit cutting code enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants