-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transform: measurements to counts (#608)
**Context:** Some hardware only return counts, and we currently does not support any other measurements for those devices. **Description of the Change:** We add a transforms that is applied in the pre-processing step of the new device API. This transform replace all measurements by a single count measurement (the transform assumes that measurements are commuting). Then post processing functions are applied in order to get the original measurements like expval, var, and probs. **Benefits:** We can use more measurements on HW supporting counts only. --------- Co-authored-by: Sergei Mironov <[email protected]> Co-authored-by: David Ittah <[email protected]>
- Loading branch information
1 parent
21e0f5f
commit f016a31
Showing
3 changed files
with
211 additions
and
4 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