-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix: Return None for variadic properties. * Fix: Remove `variable_class_operations` from `Target`. - When performing serialization, we were forgetting to include `variable_class_operations` set of names in the state mapping. Since the nature of `TargetOperation` is to work as an enum of either `Instruction` instances or class aliases that would represent `Variadic` instructiions. The usage of that structure was redundand, so it was removed. - `num_qubits` returns an instance of `u32`, callers will need to make sure they're dealing with a `NormalOperation`. - `params` behaves more similarly, returning a slice of `Param` instances. Will panic if called on a `Variadic` operation. - Re-adapt the code to work without `variable_class_operations`. - Add test case to check for something similar to what was mentioned by @doichanj in #12953. * Fix: Use `UnitaryGate` as the example in test-case. - Move import of `pickle` to top of the file.
- Loading branch information
Showing
2 changed files
with
60 additions
and
34 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