Ran
|
Files
855
|
Run time
34s
|
Badge
Embed ▾
README BADGES
|
push
github
Fix type of `basis_gates` in `BasicSimulator` configuration (#13385) (#13386) `basis_gates` was getting set to `Target.operation_names`, which is a `dict_keys` instance (maybe that should be changed to a more basic type?), while typically `basis_gates` is a list. `dict_keys` instances can not be deep copied, so code that usually deep copies a backend's configuration could not work. Deep copying the configuration can happen for example when using the `BasicSimulator` with sampler class like `qiskit_ibm_runtime.SamplerV2` that puts the backend into its options and then tries to deep copy the options. (cherry picked from commit 09d10065b) Co-authored-by: Will Shanks <willshanks@us.ibm.com>
66901 of 74527 relevant lines covered (89.77%)
216186.57 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|