Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cirq-ionq/cirq_ionq/ionq_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ def create_job(
"""
actual_target = self._target(target)

json: Dict[str, Any] = {'target': actual_target, 'body': serialized_program.body}
json: Dict[str, Any] = {
'target': actual_target,
'lang': 'json',
'body': serialized_program.body,
}
if name:
json['name'] = name
# We have to pass measurement keys through the metadata.
Expand Down
1 change: 1 addition & 0 deletions cirq-ionq/cirq_ionq/ionq_client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def test_ionq_client_create_job(mock_post):

expected_json = {
'target': 'qpu',
'lang': 'json',
'body': {'job': 'mine'},
'name': 'bacon',
'shots': '200',
Expand Down