Skip to content

Commit

Permalink
Bug fix property and methods of BackendV2Converter (#9502)
Browse files Browse the repository at this point in the history
* fix property and methods of BackendV2Converter

* add reno

* Update releasenotes/notes/fix-backendv2converter-de342352cf882494.yaml

* Update releasenotes/notes/fix-backendv2converter-de342352cf882494.yaml

---------

Co-authored-by: Naoki Kanazawa <nkanazawa1989@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit df258d4)
  • Loading branch information
to24toro authored and mergify[bot] committed Feb 1, 2023
1 parent d4e7144 commit aad2faf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qiskit/providers/backend_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,19 +266,19 @@ def dtm(self) -> float:

@property
def meas_map(self) -> List[List[int]]:
return self._config.dt
return self._config.meas_map

def drive_channel(self, qubit: int):
self._config.drive(qubit)
return self._config.drive(qubit)

def measure_channel(self, qubit: int):
self._config.measure(qubit)
return self._config.measure(qubit)

def acquire_channel(self, qubit: int):
self._config.acquire(qubit)
return self._config.acquire(qubit)

def control_channel(self, qubits: Iterable[int]):
self._config.control(qubits)
return self._config.control(qubits)

def run(self, run_input, **options):
return self._backend.run(run_input, **options)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
fixes:
- |
Fixed a bug of wrong return value of the method :meth:`BackendV2Converter.meas_map`
that had returned backend `dt` instead.
- |
Fixed a bug of missing return value from methods :meth:`BackendV2Converter.drive_channel`,
:meth:`BackendV2Converter.measure_channel`, :meth:`BackendV2Converter.acquire_channel` and
:meth:`BackendV2Converter.control_channel`.

0 comments on commit aad2faf

Please sign in to comment.