Skip to content

Commit

Permalink
Update: Add new execution results message
Browse files Browse the repository at this point in the history
  • Loading branch information
Randall Fulton authored and notmgsk committed Apr 7, 2022
1 parent 420fe3a commit bb6a374
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
1 change: 0 additions & 1 deletion rpcq/core_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from warnings import warn
from rpcq._base import Message
from rpcq.messages import ParameterSpec, PatchTarget
from typing import Any, List, Dict, Optional

if sys.version_info < (3, 7):
Expand Down
13 changes: 13 additions & 0 deletions rpcq/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,3 +408,16 @@ class QuiltCalibrationsResponse(Message):
"""Quilt code with definitions for frames, waveforms, and calibrations."""


@dataclass(eq=False, repr=False)
class GetExecutionResultsResponse(Message):
"""
Results of a completed ExecutorJob execution.
"""

buffers: Dict[str, Dict[str, Any]]
"""Result buffers for a completed ExecutorJob."""

execution_duration_microseconds: int
"""Duration (in microseconds) ExecutorJob held exclusive access to quantum hardware."""


12 changes: 12 additions & 0 deletions src/messages.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -449,3 +449,15 @@
:type :string
:required t))
:documentation "Up-to-date Quilt calibrations.")

(defmessage |GetExecutionResultsResponse| ()
((|buffers|
:documentation "Result buffers for a completed ExecutorJob."
:type (:map :string -> (:map :string -> :any))
:required t)

(|execution_duration_microseconds|
:documentation "Duration (in microseconds) ExecutorJob held exclusive access to quantum hardware."
:type :integer
:required t))
:documentation "Results of a completed ExecutorJob execution.")

0 comments on commit bb6a374

Please sign in to comment.