Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
fix: add all additional kwargs to options
Browse files Browse the repository at this point in the history
  • Loading branch information
miwurster committed Feb 1, 2024
1 parent ff5eda0 commit 0e09a67
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions planqk/qiskit/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,10 @@ def run(self, circuit, **kwargs) -> PlanqkJob:
circuit.name = "circ0"
shots = kwargs.get('shots', self._backend_info.configuration.shots_range.min)

# Set job options
options = self.options
for key, value in kwargs.items():
option = options.get(key, None)
if option is not None:
options.update_options(key=value)
options.update_options(**kwargs)

input = convert_to_backend_input(
backend_input = convert_to_backend_input(
self._backend_info.configuration.supported_input_formats,
circuit,
options)
Expand All @@ -193,8 +189,8 @@ def run(self, circuit, **kwargs) -> PlanqkJob:

job_request = JobDto(backend_id=self._backend_info.id,
provider=self._backend_info.provider.name,
input_format=input[0],
input=input[1],
input_format=backend_input[0],
input=backend_input[1],
shots=shots,
input_params=input_params)

Expand Down

0 comments on commit 0e09a67

Please sign in to comment.