Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSU-10 Add QPU information endpoints to ZMQ server #5

Merged
merged 7 commits into from
Oct 22, 2024

Conversation

jfriel-oqc
Copy link
Contributor

For completion, pending hardware model changes for full error set and all QPU properties
See this issue for current design oqc-community/qat#127
currently being worked on

Copy link

github-actions bot commented Jul 21, 2024

CLA Assistant Lite bot All Contributors have signed the CLA.

@jfriel-oqc
Copy link
Contributor Author

I have read the Contributor License Agreement and I hereby accept the Terms.

@jfriel-oqc
Copy link
Contributor Author

recheck

github-actions bot added a commit that referenced this pull request Jul 21, 2024
Copy link
Contributor

@keriksson-rosenqvist keriksson-rosenqvist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally happy, only need to adjust for comparability with older python versions.

from qat.qat import execute_with_metrics

class Messages(Enum):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think some of this should live in a qat_rpc/utils.py module or even a central Server class, as it's not ZMQ specific, and there's potentially going to be other rpc methods in the future.
OK for now though.

src/QAT_RPC/qat_rpc/zmq/wrappers.py Show resolved Hide resolved
@keriksson-rosenqvist keriksson-rosenqvist dismissed their stale review July 30, 2024 07:42

To not block while on holiday

@jdavid-oqc jdavid-oqc changed the title Add QPU information endpoints to ZMQ server CSU-10 Add QPU information endpoints to ZMQ server Aug 15, 2024
@bgsach bgsach self-requested a review September 25, 2024 11:06
@bgsach
Copy link
Contributor

bgsach commented Oct 14, 2024

I have read the Contributor License Agreement and I hereby accept the Terms.

github-actions bot added a commit that referenced this pull request Oct 14, 2024
@bgsach
Copy link
Contributor

bgsach commented Oct 14, 2024

This is blocked waiting for the next QAT release which fixes the test failure seen above. The bug was actually in QAT not QAT-RPC.

See oqc-community/qat#221

Copy link
Contributor

@bgsach bgsach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM subject to updates.


from qat_rpc.utils.constants import PROMETHEUS_PORT
from qat_rpc.utils.metrics import MetricExporter, PrometheusReceiver
from qat_rpc.zmq.wrappers import ZMQClient, ZMQServer

qubit_count = 8
qpu_couplings = [(i, j) for i in range(qubit_count) for j in range(qubit_count) if i != j]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was previously no check that i!=j which caused flakeyness in the tests.

Copy link
Contributor

@keriksson-rosenqvist keriksson-rosenqvist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once CI passes

@bgsach bgsach merged commit 3715215 into main Oct 22, 2024
7 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 22, 2024
@bgsach bgsach deleted the feature/qpu_info_endpoints branch October 22, 2024 15:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants