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

Qiskit / qiskit-ibm-runtime / 44544934552
91%

Build:
DEFAULT BRANCH: main
Ran 19 Nov 2026 02:37PM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
  cancel
44544934552

push

github

web-flow
Update `generate_fake_backend_files.py` to fully automate fake backend generation (#3586)

### Summary

`tools/generate_fake_backend_files.py` now does the follow-up steps for
a new fake backend
itself: it registers the backend in the package, documentation and
tests, sets
`_physical_qubits`, and writes a release note. Re-running it on an
existing backend now only
refreshes the two JSON files and writes a release note about the
refreshed data. It no longer
rewrites the Python files, so manual edits to them are kept.

### Details and comments

Fixes #3585.

**New backends** (the backend directory does not exist yet). In addition
to the JSON, `__init__.py` and `fake_<city>.py` files it already wrote,
the script now:
- inserts the backend in alphabetical position in
`backends/__init__.py`, the documentation list in
`fake_provider/__init__.py`, `fake_provider.py`, and the
`physical_qubits` list in
`test/unit/fake_provider/test_fake_backends.py`;
- writes `_physical_qubits` into the generated fake backend class, taken
from `backend.physical_qubits`. If the backend doesn't report it, the
script prints a warning and skips `_physical_qubits` and the test list
entry;
- writes a `feat` release note, named `<pr>.feat.rst` if `-p/--pr` is
given, otherwise `+<classname>.feat.rst`, with a reminder to rename it.

**Existing backends** (the backend directory already exists):
- the script prints a warning and overwrites only `conf_<city>.json` and
`props_<city>.json`;
- the Python files and the registration are left untouched, so manual
edits to them are not lost;
- it writes an `other` release note saying the backend data was
refreshed (`<pr>.other.rst` or `+<classname>.other.rst`).

**Other changes**
- New `-p/--pr` option, used to name the release notes.
- The generated `fake_<city>.py` now imports `FakeBackendV2` with `from
...fake_backend import FakeBackendV2` instead of `from
qiskit_ibm_runtime.fake_provider import fake_backend`.
- The module and `main()` docstr... (continued)
Source Files on build 44544934552
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #44544934552
  • 0ca173ce on github
  • Prev Build on gh-readonly-queue/main/pr-3570-ee76861478dfe8016e9b3cb2c4f1f40e5dbf099b (#44288402669)
  • Next Build on main (#44546562645)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc