-
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
Feature/ker/basic zmq rpc #2
Conversation
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.
approving, let's get this merged and start working on it from there
raise ValueError(f"No such file: {calibration_file}") | ||
log.info(f"Loading: {calibration_file} ") | ||
hw = Calibratable.load_calibration_from_file(str(calibration_file)) | ||
log.debug("Loaded") |
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.
loaded what?
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.
@keriksson-rosenqvist Consider a context here like we do for reporting time metrics in QAT
CLA Assistant Lite bot All Contributors have signed the CLA. |
I have read the Contributor License Agreement and I hereby accept the Terms. |
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.
Sorry, my comments came on late, leaving them here for next iteration
raise ValueError(f"No such file: {calibration_file}") | ||
log.info(f"Loading: {calibration_file} ") | ||
hw = Calibratable.load_calibration_from_file(str(calibration_file)) | ||
log.debug("Loaded") |
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.
@keriksson-rosenqvist Consider a context here like we do for reporting time metrics in QAT
|
||
|
||
parser = argparse.ArgumentParser(prog="QAT submission service", description="Submit your QASM or QIR program to QAT.") | ||
parser.add_argument("program", type=str, help="Program string or path to program file.") |
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 presume program
doesn't need a flag here right ? sth like runner --config <config> <program>
?
|
||
@property | ||
def address(self): | ||
return f"{self._protocol}://{self._ip_address}:{self._port}" |
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.
minor: would've leaned on the URL/URI structures here
def address(self): | ||
return f"{self._protocol}://{self._ip_address}:{self._port}" | ||
|
||
def _check_recieved(self): |
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.
you probably also want a retry mechanism here similar to _send() ?
thread01 = threading.Thread( | ||
target=execute_and_check_result, | ||
args=(client0, program, config0, {"c": { "00": 100}}), | ||
) |
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.
any thoughts how useful would a thread pool be ? to easily scale the number of threads and stress test the clients ?
@@ -19,6 +24,9 @@ optional = true | |||
[tool.poetry.group.licenses.dependencies] | |||
pip-licenses = "^3.5.3" | |||
|
|||
[tool.poetry.scripts] | |||
qat_comexe="qat_rpc.zmq.qat_commands:qat_run" |
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.
not the most intuitive name ^^, would've called it qat_run
^^
Simple ZMQ implementation of RPC.