Skip to content

Commit

Permalink
pass job_tags and session_id kwargs correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
lillian542 committed Dec 13, 2023
1 parent c8be0ae commit c63325f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pennylane_qiskit/runtime_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,14 @@ def batch_execute(self, circuits):
program_inputs[kwarg] = self.kwargs.get(kwarg)

# Specify the backend.
options = {"backend": self.backend.name}
options = {"backend": self.backend.name,
"job_tags": self.kwargs.get("job_tags")}

session_id = self.kwargs.get("session_id")

# Send circuits to the cloud for execution by the circuit-runner program.
job = self.runtime_service.run(
program_id="circuit-runner", options=options, inputs=program_inputs
program_id="circuit-runner", options=options, inputs=program_inputs, session_id=session_id,
)
self._current_job = job.result(decoder=RunnerResult)

Expand Down

0 comments on commit c63325f

Please sign in to comment.