• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit-ibm-runtime / 11994269359

24 Nov 2024 07:38AM UTC coverage: 80.105% (+0.09%) from 80.02%
11994269359

push

github

web-flow
Perform fractional gate filtering on raw API dicts (#2044)

* Perform fractional gate filtering on raw API dicts

This change moves the filtering of fractional gates and dynamic circuit
instructions up into the processing of the raw configuration and
properties dicts received through the API. Previously, the filtering was
performed only during the creation of the `Target` for the backend. So
previously an `IBMBackend` with fractional gates would have both
fractional gates and dynamic circuit instructions in its configuration
and properties data regardless of what value was used for
`use_fractional_gates`. This situation led to inconsistent behavior when
for example users tried to use `backend.basis_gates` as the reference
for which gates were available instead of
`backend.target.operation_names`.

The previous changes to filter instructions during target creation are
removed here, but the `use_fractional_gates` backend option is retained
because `IBMBackend` loads the properties data lazily and can reload the
configuration data after creation with the `refresh()` method.

Closes #2031

* Undo stray tox.ini change

* Add test of loading target properties

* Fix filtering of fractional gate properties

* black

* Restore instruction filtering to convert_to_target

* Fix test

* Fix comments pointed out in review

* Remove default values from _create_backend_obj

* Regularize filtering of fractional gates

* Set conditional to False when using fractional gates

* Fix rzx->rzz in test backend's properties

* Use Qiskit constant for control flow op names when possible

* typo

* black

* Update qiskit_ibm_runtime/qiskit_runtime_service.py

---------

Co-authored-by: Yael Ben-Haim <yaelbh@il.ibm.com>

37 of 38 new or added lines in 5 files covered. (97.37%)

6579 of 8213 relevant lines covered (80.1%)

9.71 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.0
/qiskit_ibm_runtime/utils/backend_decoder.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc