From f182d40b666a0b6b9d5156790f81e9ee06c31ca5 Mon Sep 17 00:00:00 2001 From: AbdullahAsh Saki Date: Tue, 26 Apr 2022 13:39:27 -0400 Subject: [PATCH] add initial_layout to QiskitBackend --- src/python/qeqiskit/backend/backend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python/qeqiskit/backend/backend.py b/src/python/qeqiskit/backend/backend.py index 67211b0..a9b876e 100644 --- a/src/python/qeqiskit/backend/backend.py +++ b/src/python/qeqiskit/backend/backend.py @@ -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 @@ -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(), )