Commit Graph

4 Commits

Author SHA1 Message Date
Jun Doi 44bd7eba59
Fixes for Qiskit 1.2 (#2201)
* remove configuration and properties from AerBackend

* lint

* lint

* lint

* fix qasm_simulator

* fix qasm_simulator

* fix target

* merge code from #2187 partialy to reduce deprecation warnings

* lint

* fix qasm_simulator

* fix test_sampler_v2

* add configuration and properties in Aer

* lint

* lint

* lint

* lint

* fix set_max_qubits

* test unite-test-latest-qiskit

* remove transpile when unitary gates are in circuits

* fix test

* restore unittest for latest qiskit

* add releasenote
2024-08-15 09:52:00 +09:00
Julien Gacon e6aaf03060
Remove usage of ``qiskit.extensions`` (#2023)
The module has been pending deprecation since Qiskit 0.45.
It is deprecated for 0.46 and removed in 1.0.

This removal concerns the import location of ``UnitaryGate`` and the
usage of the ``ExtensionError``. The first is easily fixed, whereas for
the latter I tried using ``ValueError`` or ``TypeError``, which seemed
to cover the error meanings. Technically, this is a breaking change and
we could introduce an intermediary class that inherits from the deprecated
``ExtensionError`` and the new choice of error. However, since we will
soon be changing to 1.0 and we also skipped this in Qiskit Terra (as we
thought it highly unlikely that users are actually relying on this error
type) it might be fine to just change the error type.
2024-01-09 13:22:23 +09:00
Jun Doi ce27d7052e
Fix AerBackend issues caused by upgrading BackendV2 (#1995)
* add description if no description is provided, build coupling map if it is provided

* move import line

* fix target for simulator backend

* format

* remove unused import

* use translation plugin to rebuild gate sets for simulator

* rename plugin

* rebuild of gate sets is eanbled only for opt level 0 and 1

* fix custom pass manager

* fix pass_manager function

* added ccx in NAME_MAPPING

* added missed gates in NAME_MAPPING

* added release note

* add check if opnodes is None

* add check config

* decrease return

* check opt level

* fix searching ops in control flow blocks

* Update qiskit_aer/backends/plugin/aer_backend_plugin.py

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

* Update qiskit_aer/backends/plugin/aer_backend_plugin.py

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

* refer review comments

* remove unused import

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
2023-11-24 15:03:29 +09:00
Hitomi Takahashi 21609c600b
Support BackendV2 (#1875)
* Support backendv2

* Change API of aerbackend init

* fix lint

* Fix lint

* Add reset gate

* Return None if the configuration does not have max_experiments

* Change function to constant

* Update code to pass the test

* Remove print

* Fix lint

* Change num of qubits in Estimator

* Skip transpilation

* Change transpile optimization level

* Add release notes

* Change process of cirucit compose by the number of qubits in estimator

* use passmanager for measurement circuits

* refactor (change line order)

* Fix lint

* Add a detail description to the release note

---------

Co-authored-by: ikkoham <ikkoham@users.noreply.github.com>
Co-authored-by: Hiroshi Horii <hhorii@users.noreply.github.com>
Co-authored-by: Jun Doi <doichan@jp.ibm.com>
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
2023-10-26 10:02:37 +09:00