-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
partition_labels
to be determined automatically in `partition…
…_problem` (#367)
- Loading branch information
Showing
5 changed files
with
69 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
releasenotes/notes/automatic-partition-labels-f90428f66ec5543a.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
features: | ||
- | | ||
:func:`.partition_problem` now works even if ``partition_labels`` | ||
is not explicitly provided. In this case, the labels are | ||
determined automatically from the connectivity of the input | ||
circuit. For the sake of determining connectivity, | ||
:class:`.TwoQubitQPDGate`\ s are ignored, as these instructions | ||
are already marked for cutting. To support this workflow, this | ||
release also introduces a new method, | ||
:meth:`.TwoQubitQPDGate.from_instruction`, which allows one to | ||
create a :class:`.TwoQubitQPDGate` that wraps a given instruction. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters