-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use more gates for AerState to call state_controller (#1643)
`AerStatevector` wrongly assumed that methods of `AerState` support `mc*` instructions. With this commit, `AerStatevector` use basic gates supported in specified method. * use more gates for AerState to call state_controller * take assertion for parameter checking to use IndexError and take debug codes * add more tests for AerStatevector * fix lint * update aer_runtime to use cu that has four parameters
- Loading branch information
Showing
7 changed files
with
414 additions
and
37 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
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
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/fix_aer_statevector_mps-c3dd40b936700ff4.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,8 @@ | ||
--- | ||
issues: | ||
- | | ||
Fix two bugs in AerStatevector. AerStatevector uses mc* instructions, which are | ||
not enabled in matrix_product_state method. This commit changes AerStatevector | ||
not to use MC* and use H, X, Y, Z, U and CX. AerStatevector also failed if an | ||
instruction is decomposed to empty QuantumCircuit. This commit allows such | ||
instruction. |
Oops, something went wrong.