Commit Graph

1600 Commits

Author SHA1 Message Date
Ikko Hamamura 3e8ba713af
add note (#1992)
Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-11-24 02:39:49 +00:00
eliotheinrich 0de759ef37
Fix extended stabilizer thread safety in apply_ops_parallel (#1993)
* Extended stabilizer simulator no longer shares RngEngine amongst states when ops are applied in parallel

* Added release note

* Fixed ugly cast

---------

Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-11-24 01:48:35 +00:00
Jun Doi 7adacaad36
Reverse ordering to read out error in sampling measure (#2003)
* reverse ordering of read out error in sampling measure

* fix batch check

---------

Co-authored-by: Hiroshi Horii <hhorii@users.noreply.github.com>
2023-11-22 04:43:00 +00:00
Jun Doi 3883f9a7c7
test build fix (#2004) 2023-11-22 12:40:20 +09:00
Matthew Treinish 6f0b94f489
Directly use psutil to get total system memory (#2002)
Currently Aer is using Qiskit's local_hardware_info() function which to
determine the total amount of system memory which is used to compute the
largest statevector the system can build. However, this function wasn't
really intended to be used outside of Qiskit and also Qiskit is looking
to remove the memory reporting (see: Qiskit/qiskit#11254). This commit
just pivots to using psutil directly which is what qiskit is doing
internally.
2023-11-21 13:00:10 +09:00
Jun Doi c8061804e7
fix ry gate for stabilizer (#2001)
Co-authored-by: Hiroshi Horii <hhorii@users.noreply.github.com>
2023-11-20 10:34:25 +00:00
Jun Doi 4dd91d13b7
Add optimization_level=0 to transpiler for compiling dynamic circuits (#2000)
``id`` gate was removed by transpiler called from aer_compiler without optimization_level for dynamic circuits.
This commits adds ``optimization_level=0`` to avoid removing id gates
2023-11-20 18:52:57 +09:00
jon 880df288af
Update misspelling apply_gate method doc (#1998)
Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-11-16 10:55:14 +09:00
Elena Peña Tapia 4f309b478f
Remove use of opflow in Estimator (#1996) 2023-11-14 15:07:36 +09:00
Jun Doi a36812fbe3
Change priority of method selection of noise simulation (#1989)
* Avoid selecting stabilizer method when noise model contains rotational gates

* remove checking noise opsets, change priority selecting density_matrix

* format

* modify test cases use auto method result may change by this PR

* modify one more test case
2023-11-08 22:58:56 +09:00
Ikko Hamamura e96611b156
Revert too many deprecations in Estimator (#1990)
* Revert too much deprecation

* fix typo

* fix tests
2023-11-08 16:16:12 +09:00
Jun Doi e31ff65946
Applying global phase multiplication to initialize operation (#1980)
* Applying global phase to initialize operation

* fix format

* remove recursive, add omp
2023-11-01 18:39:44 +09:00
Jun Doi 314c1ff251
Fix basis gates of Aer backends (#1976)
* move reset and switch_case ops to custom istr

* Fix reset in AerStatevector

* add test case

* format

* fix installing built Aer in some test cases
2023-10-31 22:04:15 +09:00
Jun Doi 85831ee1bf
add skip Python 3.12 for GPU build (#1965) 2023-10-26 13:14:13 +00:00
Jun Doi 2478a5be20
Release 0.13.0 (#1964)
* rebuilt release 0.13.0

* fix release highlight
2023-10-26 18:46:30 +09:00
Luciano Bello 2357569d08
[rebranding] Qiskit Aer is now Aer (#1954)
Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-10-26 02:20:27 +00: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
Arnau Casau 5239fcc70f
Fix templates documentation (#1961)
Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-10-24 10:51:05 +00:00
Ikko Hamamura 861ec5cc10
Deprecate approximation option in Estimator (#1963)
* Deprecate approximation

* fix tests
2023-10-24 17:49:02 +09:00
Hiroshi Horii a13ff4e2eb
support transpilation of switch_case (#1962) 2023-10-20 15:15:54 +09:00
Jun Doi e7afbfbb6a
Add test for unreleased Qiskit (#1950)
* add tests for unreleased Qiskit

* Update .github/workflows/tests.yml

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

* Scheduled test for latest Qiskit

* run latest Qiskit test at push

* fix test

* fix qiskit test again

* fix test case for runtime parameter binding

* remove on push/pull request from latest Qiskit unit test

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
2023-10-19 20:40:00 +00:00
Arnau Casau 6d141c0ee8
Update Sphinx theme (#1946)
* Update Sphinx theme

* importlib-metadata constraint removed

* Update conf.py

---------

Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-10-18 17:38:36 +09:00
Arnau Casau f8e32c257d
Move methods into class pages for docs (#1958)
Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-10-18 16:25:59 +09:00
Hiroshi Horii e434c59d4a
Support `Expr` that Terra 0.24 newly introduced (#1915)
* initial commit for classical expressions

* add classical expression in C++ and its binding

* Implemented ecr for stabilizer simulator. (#1892)

* Implemented ecr for stabilizer simulator.

* Implemented  ecr for stabilizer simulator.

* Adapted to coding style.

* fixed testcode for ecr in stabilizer.

* remove deploy documentation to /documentation/aer (#1891)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

* support classical expression evaluation for branches

* fix lint errors

* change Expr to CExpr

* resolve lint errors

* suppprt expr for batched shot GPU

* use ExprVisitor in AerCompiler to traverse nodes in Expr

* fix lint issues

* use accept method instead of custom visit method for ExprVisitor in aer_compiler

* fix lint errors

* refactor aer_compiler

* Update releasenotes/notes/support_classical_expr-dd621e5c0fd23a15.yaml

Co-authored-by: Jake Lishman <jake@binhbar.com>

* replace expr rather than modiyfing expr.var

* fix lint error

---------

Co-authored-by: MarcMaussner <114133362+MarcMaussner@users.noreply.github.com>
Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Jun Doi <doichan@jp.ibm.com>
Co-authored-by: Jake Lishman <jake@binhbar.com>
2023-10-13 15:44:04 +09:00
Hiroshi Horii 64a969656e
Add test case to serialize result of simulation (#1869)
* add test case to serialize result of simulation

* add pickle comparison

---------

Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-10-10 06:57:12 +00:00
Hiroshi Horii 94377f8725
enable `c_if` for reset and raise exception if instruction does not support `c_if` (#1868)
* enable c_if for reset and raise exception if instruction does not support c_if

* add reno

* use correct conditional_reg for reset

* support c_if for diagonal
2023-10-10 14:37:19 +09:00
MarcMaussner 6d7282b8cf
Implementation and test of QuantumError.from_dict. (#1942)
* Implementation and test of QuantumError.from_dict.

* Made code lint warning free.

---------

Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-10-06 17:35:08 +09:00
Jun Doi e1332f862e
Implementing runtime parameter binding (#1901)
Optimizes GPU simulation for single circuit with multiple parameters by binding parameters
to each gates at runtime on a single circuit with multiple shots of simulations. 
This feature is enabled by a new option ``runtime_parameter_bind_enable=True`` (Default is ``False``).

* Implementing runtime parameter binding
* remove old files
* fix seg fault caused by global phase for parameters
* delete duplicate max_matrix_qubits
* Correct metadata for runtime param bind configs and move time_taken to metadata so that we can read time info from primitives
* performance improvement of sampling measure for runtime parameter binding
* fix error for MPI
* Improve batched sampling measure
* format
* fix OpenMP nested parallel
* reflecting review comments
* fix lint
* fix lint
2023-10-06 11:24:48 +09:00
Julien Gacon 73f0847af2
Fix usage of QuantumCircuit.id (#1945)
Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-10-02 06:37:52 +00:00
Jun Doi 8f825d7bfa
fix matplotlib version (#1951) 2023-10-02 05:26:35 +00:00
Luciano Bello fffb5de1b7
move travis file to gha in the README (#1943)
* change the badge from travis to gha

* add build

---------

Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-10-02 11:01:34 +09:00
Jun Doi 1a5af5975c
Fix nested parallel performance (#1949) 2023-09-28 08:05:31 +00:00
Ikko Hamamura b83abe2656
Fix the order bug in Estimator (#1936)
* Fix the order bug

* add reno

---------

Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-09-27 10:05:20 +09:00
Ikko Hamamura 23488b9c24
Improve performance of sampler experiment (#1935)
* Improve performance of sampler parameter-binds

* lint

* fix order

* add reno

* refactor

* Update releasenotes/notes/sampler-performance-81e1649ec4657aad.yaml

---------

Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-09-26 22:26:45 +09:00
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
Jun Doi 343b119693
Add rotation gates to stabilizer (#1938)
* Add rotation gates to stabilizer

* format tests

* set method=statevctor to sample tests

* set method=statevector to Estimator test, fix ry gate

* format test
2023-09-19 14:51:36 +09:00
Jun Doi 39487dbf8c
Fix required_memory_mb for MPS and extended stabilizer (#1933)
* Fix required_memory_mb for MPS and extended stabilizer

* requried_memory_mb calculates everytime, so added Config to some functions calling requried_memory_mb
2023-09-12 15:43:12 +09:00
Adrian Roman 5e77fc83dd
Fix for https://github.com/Qiskit/qiskit-aer/issues/1918 (#1922)
* Fix for https://github.com/Qiskit/qiskit-aer/issues/1918

* Removed prelude section in release note
2023-09-07 22:58:45 +09:00
Jun Doi 4fb99dddf9
Fix measure in stabilizer method (#1895)
* Fix measure in stabilizer

* add test case for measuring stabilizer

---------

Co-authored-by: Hiroshi Horii <hhorii@users.noreply.github.com>
2023-09-07 05:00:49 +00:00
Adrian Roman 6460e4935f
Fix for https://github.com/Qiskit/qiskit-aer/issues/1925 (Aer runtime… (#1926)
* Fix for https://github.com/Qiskit/qiskit-aer/issues/1925 (Aer runtime api (from contrib) exposes the wrong sx operation)

* Changed as advised in https://github.com/Qiskit/qiskit-aer/pull/1926#pullrequestreview-1610165616
2023-09-06 10:04:18 +09:00
Samuel F Antao d568c6a40d
Enable ROCm target based on existing CUDA/Thrust implementation. (#1914)
* Add Eclipse IDE project files to .gitignore.

* Change existing CUDA implementation to reflect a generic GPU.

* Add AMD GPU support through ROCm.

* Add release node.

* Update ROCm release note.

* Fix formatting.

* Fix formatting.

* Cancel .gitignore changes for Eclipse IDE.

* Fix missing definition caused by change of header include ordering.

* Define enviorment variable to allow Qiskit-Aer to be built without CUDA requirements.

* Make vector allocation aligned to 64-bytes as that is the same alignement requirement used by State data.

* Fix typos and remove changes going in separate PRs.

* Fix lint error and rename release notes file.

* Add partial release note to debug docs build.

* Fix parsing of release note.

* Add release note.

* Revert "Add release note."

This reverts commit f07234ea39.

* Update CONTRIBUTING.md

Add ROCm build instructions.

* Update add-rocm-support-db991e3c2f2ca455.yaml

---------

Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-09-04 16:09:34 +09:00
Adrian Roman 1819ffdb0c
For https://github.com/Qiskit/qiskit-aer/issues/1905 and https://gith… (#1907)
* For https://github.com/Qiskit/qiskit-aer/issues/1905 and https://github.com/Qiskit/qiskit-aer/issues/1906

* formatting

* Hopefully clang likes it now

* Now with clang run on it, hopefully it's fine.

* Removed prelude section in release note

* Removed prelude section in release notes
2023-09-04 11:20:30 +09:00
Samuel F Antao f9a6691269
Define environment variable to allow Qiskit-Aer to be built without CUDA requirements (#1910)
* Define enviorment variable to allow Qiskit-Aer to be built without CUDA requirements.

* Add release note.

---------

Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-08-31 15:02:16 +09:00
Samuel F Antao 0cca1e3220
Make vector allocation aligned to 64-bytes (#1909)
* Make vector allocation aligned to 64-bytes as that is the same alignement requirement used by State data.

* Add release note.

---------

Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-08-31 11:17: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
Samuel F Antao d8beeabcef
Fix errors coming from deprecations in recent NumPy versions. (#1904)
* Add Eclipse IDE project files to .gitignore.

* Change existing CUDA implementation to reflect a generic GPU.

* Correct NumPy deprecation warnings.

* Fix formatting.

* Cancel .gitignore changes for Eclipse IDE.

* Rebase without CUDA refactor changes.

---------

Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-08-25 10:22:40 +09:00
Samuel F Antao d656553c57
Change the the existing CUDA implementation to a generic GPU implementation. (#1903)
* Add Eclipse IDE project files to .gitignore.

* Change existing CUDA implementation to reflect a generic GPU.

* Fix formatting.

* Cancel .gitignore changes for Eclipse IDE.

---------

Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-08-24 18:45:12 +09:00
Hiroshi Horii 8998d9403b
correct bit ordering in measure of state_controller (#1898)
Co-authored-by: Jun Doi <doichan@jp.ibm.com>
2023-08-24 14:45:58 +09:00
Luciano Bello 9037f62a93
remove deploy documentation to /documentation/aer (#1891)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-08-22 16:04:09 +00:00
MarcMaussner 00e787ff4b
Implemented ecr for stabilizer simulator. (#1892)
* Implemented ecr for stabilizer simulator.

* Implemented  ecr for stabilizer simulator.

* Adapted to coding style.

* fixed testcode for ecr in stabilizer.
2023-08-22 13:01:19 +09:00