Skip to content

Use qBraid's native OriginQ provider instead of custom metriq-gym one#735

Draft
vprusso wants to merge 2 commits intomainfrom
test-qbraid-origin-provider
Draft

Use qBraid's native OriginQ provider instead of custom metriq-gym one#735
vprusso wants to merge 2 commits intomainfrom
test-qbraid-origin-provider

Conversation

@vprusso
Copy link
Copy Markdown
Contributor

@vprusso vprusso commented Mar 26, 2026

  • Point qbraid dependency at vprusso/qBraid@add-originq-provider which includes a native OriginQ provider (see [FEATURE] Support OriginQ as provider qBraid/qBraid#1146)
  • Remove origin entry points from metriq-gym pyproject.toml
  • Update qplatform/device.py to import OriginDevice from qbraid.runtime.origin
  • Inline get_origin_connectivity logic (uses device.backend.chip_info() directly)
  • Update test constructors to match qBraid's OriginDevice API

Tested end-to-end: dispatched and polled WIT benchmark on WK_C180 (180-qubit hardware).

Dispatch:

uv run mgym job dispatch metriq_gym/schemas/examples/wit.example.json -p origin -d WK_C180

Poll:

Polling job...
[Cached result data]
{'app_version': '0.7.1.dev6+ge2b134ab4.d20260326',
 'job_type': 'WIT',
 'platform': {'device': 'WK_C180',
              'device_metadata': {'num_qubits': 180, 'simulator': False},
              'provider': 'origin'},
 'results': {'expectation_value': {'uncertainty': 0.005050862119521717,
                                   'value': 0.2974853515625},
             'score': {'uncertainty': 0.005050862119521717,
                       'value': 0.2974853515625}},
 'suite_id': None,
 'timestamp': '2026-03-26T14:17:16.832147'}

Results:
  expectation_value: 0.2974853515625 ± 0.005050862119521717
  score: 0.2974853515625 ± 0.005050862119521717

- Point qbraid dependency at vprusso/qBraid@add-originq-provider which
  includes a native OriginQ provider (see qBraid/qBraid#1146)
- Remove origin entry points from metriq-gym pyproject.toml
- Update qplatform/device.py to import OriginDevice from qbraid.runtime.origin
- Inline get_origin_connectivity logic (uses device.backend.chip_info() directly)
- Update test constructors to match qBraid's OriginDevice API

Tested end-to-end: dispatched and polled WIT benchmark on WK_C180 (180-qubit hardware).
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 26, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://unitaryfoundation.github.io/metriq-gym/pr-preview/pr-735/

Built to branch gh-pages at 2026-03-26 18:33 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant