* 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>
* 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>
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
* 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>
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>
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
* 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
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>
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>
* 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