Skip to content

Commit

Permalink
Fix range in list comprehension for lo ranges in backend configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
taalexander committed Dec 27, 2019
1 parent e00b6c6 commit 555f727
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions qiskit/providers/models/backendconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 555f727

Please sign in to comment.