Commit Graph

13 Commits

Author SHA1 Message Date
Toshinari Itoko 6ac975a6d9
Fix incorrect excited state population when building noise model from BackendV2 (#1939)
* Add test to fix 1937

* Fix incorrect computation of excited state population

* Fix lint

* Add reno

---------

Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-09-26 15:22:29 +09:00
Toshinari Itoko ada56a3b6c
Fix noise model construction for a backend with no T2 value for a qubit (#1912)
* Fix a bug failing to create device gate errors when t2==None while t1!=None for a qubit.

* Add reno

---------

Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-08-25 13:58:39 +09:00
Toshinari Itoko eeec1af4b8
Fix handling of None in noise model construction from BackendV2 (#1818)
Fixes `NoiseModel.from_backend` not to fail when calling it with a V2 backend having
faulty qubits such that T1 and T2 are `None` in the `target.qubit_properties`. 

* fix handling of None in noise model construction from BackendV2
* add reno
* simplify a bit
* update docs
2023-05-22 11:06:36 +09:00
Hiroshi Horii 0366c51c0e
add code-formatting with black for python and with clang-format for c++ (#1630)
* add black and clang-format

* apply black and clang-format

* manually format codes that were not covered in black and clang-format

* add targets of clang-format and clean up tox.ini

* apply black with new configuration

* Update CONTRIBUTING.md

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

* Update .github/workflows/tests.yml

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

* reformat qiskit_aer, test, tools, and setup.py with length 100

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
2023-03-13 20:19:06 +00:00
Toshinari Itoko f205ddfc51
Remove deprecated functions in noise module (#1624)
Remove deprecated functions in noise module, e.g. NoiseModel.add_nonlocal_quantum_error, support of json-like input for QuantumError and standard_gates argument in many standard_errors.
Note that NoiseModel.from_dict is NOT removed exceptionally until alternative methods for serialize/deserialize NoiseModel objects are provided.

* Remove deprecated functions related with NoiseModel
* Remove deprecated functions in QuantumError
* Remove deprecated functions in utils
* Remove deprecated errorutils
* Remove deprecated arguments of functions in standard_erros
* Update tests not to use deprecated functions
* Lint
* Add release note
* Fix a mistake in warnings
* Improve release note
* Fix typos
* Move imports to the top level
* Fix docs and lint

---------

Co-authored-by: Hiroshi Horii <hhorii@users.noreply.github.com>
2023-03-08 00:34:13 +09:00
Toshinari Itoko 58b86e1b8f
Fix incorrect computation of excited state population (#1672)
This commits fixed a bug in NoiseModel.from_backend where using the temperature kwarg with
a non-default value would incorrectly compute the excited state population for the specified temperature.
Previously, there was an additional factor of 2 in the Boltzman distribution calculation leading to
an incorrect smaller value for the excited state population.

* Fix a bug in computation of excited population
* Improve reno
* Reword reno
2022-12-02 12:24:23 +09:00
Toshinari Itoko eab7d8904c
Fix device noise model from BackendV2 not to have excessive quantum errors on measures/resets (#1649)
* Fix devide noise model from target

* Add release note

* Upgrade device noise models not to have errors on resets

* Revert the previous upgrade and fix the bug so that the behevior is the same as for backend v1
2022-11-30 02:40:43 +00:00
Toshinari Itoko d304233f58
Remove verbose warnings on parameter truncations when creating noise model from backend (#1639)
This commit removes warnings about a noise model from a backend to report un-physical device parameters (such as T2 > 2*T1 due to statistical errors in their estimation). These warnings are not actionable (so useless) for users in the sense that there are no means other than truncating them to the theoretical bounds as done within noise.device module.

* Fix 1631 by removing warnings on parameter truncations
* Add release note
* Remove one more case printing useless warnings

Co-authored-by: Hiroshi Horii <hhorii@users.noreply.github.com>
2022-11-07 13:41:27 +09:00
Matthew Treinish 13937fdb59
Move Aer to its own package (#1526)
Namespace packages are constant source of problems for users. The python
packaging ecosystem around splitting packages across namespaces is
fragile at the best of times and can often leave a you with an
environment that isn't recoverable (especially when mixing install
methods). There is also a performance hit whenever there is a piece of
the namespace we allow external packages to extend since it requires
doing a full python path search which can be slow depending on the
backing I/O and the number of paths in sys.path for an environment. This
commit addresses the piece from the aer perspective by moving
qiskit.providers.aer to it's own package and namespace 'qiskit_aer'.

Co-authored-by: Hiroshi Horii <horii@jp.ibm.com>
2022-08-31 10:33:59 +09:00
Juan Gomez 9ea697252e Qiskit Terra v0.7 integration
* New folder structure matching Qiskit namespace convention
  Everything is under: qiskit.providers.aer
* Tests changed accordingly
* Documentation changed accordingly
2018-12-17 23:21:14 +01:00
cjwood 30e3446ca9 improve device noise models
* allow disabling readout error on device noise models
* allow specifying a qubit temperature for relaxation model
* allow specifying custom gate times for relaxation model to add to or override backend properties times
2018-12-13 17:45:50 -05:00
cjwood 8eb9a8034a fix device noise model for current backend config format 2018-12-11 14:49:21 -05:00
cjwood 553d3f697d add simple noise models for IBMQ devices 2018-12-10 20:30:51 -05:00