diff --git a/qiskit/providers/models/backendconfiguration.py b/qiskit/providers/models/backendconfiguration.py index 21305e185352..f69a044658d5 100644 --- a/qiskit/providers/models/backendconfiguration.py +++ b/qiskit/providers/models/backendconfiguration.py @@ -325,8 +325,10 @@ def __init__(self, self.n_uchannels = n_uchannels self.u_channel_lo = u_channel_lo self.meas_levels = meas_levels - self.qubit_lo_range = [[range[0] * 1e9, range[1] * 1e9] for range in qubit_lo_range] - self.meas_lo_range = [[range[0] * 1e9, range[1] * 1e9] for range in meas_lo_range] + self.qubit_lo_range = [[min_range * 1e9, max_range * 1e9] for + (min_range, max_range) in qubit_lo_range] + self.meas_lo_range = [[min_range * 1e9, max_range * 1e9] for + (min_range, max_range) in meas_lo_range] self.rep_times = rep_times self.meas_kernels = meas_kernels self.discriminators = discriminators @@ -337,8 +339,8 @@ def __init__(self, channel_bandwidth = kwargs.pop('channel_bandwidth', None) if channel_bandwidth: - self.channel_bandwidth = [[range[0] * 1e9, range[1] * 1e9] for - range in channel_bandwidth] + self.channel_bandwidth = [[min_range * 1e9, max_range * 1e9] for + (min_range, max_range) in channel_bandwidth] super().__init__(backend_name=backend_name, backend_version=backend_version, n_qubits=n_qubits, basis_gates=basis_gates, gates=gates,