-
Notifications
You must be signed in to change notification settings - Fork 32
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
Conversation
Pull Request Test Coverage Report for Build 5883555891
💛 - 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
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 |
Yeah, I think this is the best plan. Thank you for the speedy review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good ideas! Thanks
... 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.