-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
CLA Assistant Lite bot All Contributors have signed the CLA. |
I have read the Contributor License Agreement and I hereby accept the Terms. |
recheck |
There was a problem hiding this 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): |
There was a problem hiding this comment.
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.
I have read the Contributor License Agreement and I hereby accept the Terms. |
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. |
There was a problem hiding this 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] |
There was a problem hiding this comment.
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.
There was a problem hiding this 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
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