Return Datastore from QutipBackend.run#10
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Things look good, happy to accept this for the bounty; the PR does what the issue asked for and the new tests are good. Thanks for your work on it! Some feedback to improve the changes: now that the Datastore is the output, You can see the cost of keeping it in I think the cleaner shape is to drop As well, the upstream group fields are all bare |
Collect run data as plain numpy attributes on the VM and build the Datastore directly. Metric labels use comma-separated attrs.
|
@benjimaclellan Thanks for the detailed feedback addressed in the latest push:
Left dataschema as-is per your note. All 12 tests still pass locally. |
benjimaclellan
left a comment
There was a problem hiding this comment.
Thanks for the additional changes @CodeMaverick2 - looks good for now. I'll assign the Issue you to you and close out this bounty.
Summary
Closes #9.
QutipBackend.run(task)now returns anoqd_dataschema.Datastorewith anemulationgroup (AnalogEmulatorDataGroup) instead ofTaskResultAnalog.(n_tsteps, n_metrics); names inmetrics.attrs["metric_labels"](JSON)state; shot outcomes inmeasurementswhen the circuit includesmeasure()model_dump_hdf5, read metrics from datastore)Depends on
Requires
AnalogEmulatorDataGrouponoqd-dataschemamain- merge oqd-dataschema #11 first (CI will fail until that lands).Test plan
measure()times/metrics/state), no measurements withoutmeasure(), compile path still worksoqd-dataschemasuite with new group: 147 passed, 57 xfailed (pre-existing)Note: Until dataschema is merged, install with
pip install git+https://github.com/OpenQuantumDesign/oqd-dataschema@feat/analog-emulator-data-groupfor local/CI review.