-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce an optional virtual shape for MultiQubitFrame objects (#101)
* introduce virtual shape * update unittest * update product frames * add unittests for multiqubit frames * update how `shape` is computed in `ProductFrame` * add unittests for `ProductFrame` * update docstrings * add release note * fix typos * update after review * lint and tests * update after review
- Loading branch information
Showing
7 changed files
with
395 additions
and
71 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
7 changes: 7 additions & 0 deletions
7
releasenotes/notes/virtual-shape-multiqubit-frame-adf7d2a13ea1cd56.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,7 @@ | ||
--- | ||
features: | ||
- | | ||
The :class:`.MultiQubitFrame` now has a ``shape`` attribute. Before, its shape was implicitly | ||
assumed to be ``(len(frame.num_operators),)`` and the operators were indexed by integers. Note | ||
that this is is still the default shape and indexing method. However, the frame operators can | ||
now also be indexed by multi-indices (tuple of integers) if a custom shape is specified. |
Oops, something went wrong.