Skip to content

Commit

Permalink
Merge pull request #108 from zapatacomputing/add_initial_layout
Browse files Browse the repository at this point in the history
add initial_layout to QiskitBackend
  • Loading branch information
akataba authored May 6, 2022
2 parents 7ddc904 + f182d40 commit 0c1c941
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/python/qeqiskit/backend/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def __init__(
self.basis_gates = kwargs.get(
"basis_gates", self.device.configuration().basis_gates
)
self.initial_layout = kwargs.get("initial_layout", None)
self.retry_delay_seconds = retry_delay_seconds
self.retry_timeout_seconds = retry_timeout_seconds
self.n_samples_for_readout_calibration = n_samples_for_readout_calibration
Expand Down Expand Up @@ -264,6 +265,7 @@ def execute_with_retries(
self.device,
shots=n_samples,
basis_gates=self.basis_gates,
initial_layout=self.initial_layout,
optimization_level=self.optimization_level,
backend_properties=self.device.properties(),
)
Expand Down

0 comments on commit 0c1c941

Please sign in to comment.