Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.12.1 #1776

Merged
merged 43 commits into from
Jun 13, 2023
Merged

Release 0.12.1 #1776

merged 43 commits into from
Jun 13, 2023

Commits on Apr 7, 2023

  1. Configuration menu
    Copy the full SHA
    7f793b4 View commit details
    Browse the repository at this point in the history
  2. Remove redundant wheel dep from pyproject.toml (Qiskit#1741)

    Remove the redundant `wheel` dependency, as it is added by the backend automatically.
    
    Listing it explicitly in the documentation was a historical mistake and has been fixed since,
    see: [pypa/setuptools@f7d30a9](pypa/setuptools@f7d30a9).
    
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    2 people authored and hhorii committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    aae43b2 View commit details
    Browse the repository at this point in the history
  3. add code-formatting with black for python and with clang-format for c…

    …++ (Qiskit#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 <[email protected]>
    
    * Update .github/workflows/tests.yml
    
    Co-authored-by: Matthew Treinish <[email protected]>
    
    * reformat qiskit_aer, test, tools, and setup.py with length 100
    
    ---------
    
    Co-authored-by: Matthew Treinish <[email protected]>
    hhorii and mtreinish committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    8c9cfb3 View commit details
    Browse the repository at this point in the history
  4. Add git blame ignore file (Qiskit#1745)

    This commit adds a new file with the SHA1 of commits to ignore when
    running git blame. This is important because of the recent adoption of
    black and clang-format as our code formatting tool in Qiskit#1630 we caused a
    large amount of code churn to change the code formatting. However, using
    the ignore file is a local opt-in feature for git and not something we
    can enable globally by default. To facilitate this a section is added to
    the bottom of the contributing guide to document how this file can be
    used.
    mtreinish authored and hhorii committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    41bba6a View commit details
    Browse the repository at this point in the history
  5. deploy documentation in qiskit.org/ecosystem (Qiskit#1748)

    * deploy documentation in qiskit.org/ecosystem
    
    * comment
    1ucian0 authored and hhorii committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    647fe1c View commit details
    Browse the repository at this point in the history
  6. Remove a release note in an invalid location (Qiskit#1750)

    Essentially equivalent content is already incorporated in Qiskit#1739.
    derwind authored and hhorii committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    c5a5679 View commit details
    Browse the repository at this point in the history
  7. Fix how to reference to config.cuStateVec_enable (Qiskit#1749)

    * Fix how to reference to config.cuStateVec_enable
    
    * Add a release note
    
    * Update fix-cuStateVec_enable-0936f2269466e3be.yaml
    
    ---------
    
    Co-authored-by: Hiroshi Horii <[email protected]>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    3 people committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    d4f4be2 View commit details
    Browse the repository at this point in the history
  8. use omp_set_max_active_levels instead of omp_set_nested (Qiskit#1752

    )
    
    omp_set_nested was deprecated since OpenMP 3.0 and this commit
    replaces it with omp_set_max_active_levels.
    
    * use omp_set_max_active_levels instead of omp_set_nested
    * use omp_set_nested in WIN
    * Update releasenotes/notes/use_omp_set_max_active_levels-7e6c1d301c4434a6.yaml
    * use _OPENMP to select omp_set_max_active_levels or omp_set_nested
    ---------
    
    Co-authored-by: Jake Lishman <[email protected]>
    hhorii and jakelishman committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    4a13ca9 View commit details
    Browse the repository at this point in the history
  9. Ensure QuantumCircuit.metadata is always a dict (Qiskit#1761)

    * Ensure QuantumCircuit.metadata is always a dict
    
    This is for compatibility with Qiskit/qiskit#9849
    
    * fix order
    
    * fix typo :(
    
    * revert object->object() change
    
    * make backportable
    ihincks authored and hhorii committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    ed2f289 View commit details
    Browse the repository at this point in the history
  10. Add Tutorials to Documentation Page (Qiskit#1768)

    * Add tutorials
    
    * Add pandoc installation
    
    ---------
    
    Co-authored-by: Hiroshi Horii <[email protected]>
    hitomitak and hhorii committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    fdded76 View commit details
    Browse the repository at this point in the history
  11. Defer gathering backends until they are needed (Qiskit#1760)

    * Defer gathering backends until they are needed
    
    * Disable the not-an-iterable warning
    
    Pylint infers _get_backends to always return None, even if we add type
    annotations. Suppress the warning.
    
    * Add @staticmethod to AerProvider._get_backends
    
    ---------
    
    Co-authored-by: Hiroshi Horii <[email protected]>
    SquidDev and hhorii committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    f75f0f6 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2023

  1. Fix wrong set of parameters in circuits with barriers (Qiskit#1775)

    * Fix wrong set of parameters in circuits with barriers
    
    `AerCircuit` is created from a circuit by iterating its instrucitons
    while skpping barrier. This leads inconsistency with positions of
    parameter bindings. This commit adds barrier instruction to the class
    and keeps positions of parameter bindings.
    
    * fix lint error in test
    
    * remove unused variable in test
    hhorii committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    9348aad View commit details
    Browse the repository at this point in the history
  2. Add API docs for QuantumCircuit methods (Qiskit#1753)

    * Add new doc for circuit method apis
    
    * Remove QuantumCircuit description
    
    ---------
    
    Co-authored-by: Hiroshi Horii <[email protected]>
    hitomitak and hhorii committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    5c72c81 View commit details
    Browse the repository at this point in the history
  3. Resolve regression from introduction of AER::Config (Qiskit#1747)

    This commit reduces redundant copy in `AER::Transpile::CircuitOptimization`.
    Since 0.12.0, configuration is `AER::Config` instead of `json_t`. This new class
    has many fields and then its copy overheads become high. Reduction of
    redundant copy improves performance especially for low-qubit simulation.
    hhorii committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    13f2a6c View commit details
    Browse the repository at this point in the history

Commits on May 15, 2023

  1. Remove REQUIRED to find PythonLibs in FindPybind11 (Qiskit#1786)

    * pin the version of scikit-build to 0.17.2
    
    * Pin scikit-build version by 0.17.2
    
    Co-authored-by: Matthew Treinish <[email protected]>
    
    * remove REQUIRED to find PythonLibs in FindPybind11
    
    ---------
    
    Co-authored-by: Matthew Treinish <[email protected]>
    hhorii and mtreinish committed May 15, 2023
    Configuration menu
    Copy the full SHA
    7c8c254 View commit details
    Browse the repository at this point in the history
  2. Remove Sampler.close, assert DeprecationWarning of opflow, and update…

    … dependency (Qiskit#1804)
    
    Since qiskit-terra 0.24, `Sampler` does not have `close()` but Aer's `Sampler` still have the method. This commit takes the method as well as upgrade of Python versions in tutorial tests from 3.7 to 3.8.
    
    * rm close
    * assert DeprecationWarning
    * update dependency
    ikkoham authored and hhorii committed May 15, 2023
    Configuration menu
    Copy the full SHA
    583985e View commit details
    Browse the repository at this point in the history
  3. Fix setting MPI processes and ranks (Qiskit#1808)

    0.12.0 accidentally removed MPI support if application does not use qobj. This commit reverts the change.
    doichanj authored and hhorii committed May 15, 2023
    Configuration menu
    Copy the full SHA
    f067573 View commit details
    Browse the repository at this point in the history
  4. Fix library path to cuQuantum and cuTENSOR (Qiskit#1801)

    Co-authored-by: Hiroshi Horii <[email protected]>
    doichanj and hhorii committed May 15, 2023
    Configuration menu
    Copy the full SHA
    8a98b1d View commit details
    Browse the repository at this point in the history
  5. Activate jQuery in docs (Qiskit#1802)

    Sphinx 6 no longer activates jQuery by default but `qiskit_sphinx_theme` still uses it.
    This commits enables jQuery by adding the theme to extensions in conf.py.
    
    ---------
    
    Co-authored-by: Hiroshi Horii <[email protected]>
    Eric-Arellano and hhorii committed May 15, 2023
    Configuration menu
    Copy the full SHA
    b8a6d06 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2023

  1. fix cuQuantum static linking (Qiskit#1812)

    Co-authored-by: Hiroshi Horii <[email protected]>
    doichanj and hhorii committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    b79200f View commit details
    Browse the repository at this point in the history
  2. Update standard_errors.py (Qiskit#1799)

    There was a typo in the rendering of the mathematical text on Depolarizing Error Page (https://qiskit.org/ecosystem/aer/stubs/qiskit_aer.noise.depolarizing_error.html)
    
    Co-authored-by: Hiroshi Horii <[email protected]>
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    3 people committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    70c1a98 View commit details
    Browse the repository at this point in the history
  3. Add implicit cast of argument types (Qiskit#1770)

    * Add implicit cast of argument types
    
    Since 0.12.0, AerConfig is used to configure simulation, which
    is directly bound to a AER::Config object through pybind.
    This change requires application to specify strictly correct types
    of configuration options. This commit allows implicit casting
    to arguments if application specifies them with wrong types.
    This commit resolves Qiskit#1754.
    
    * does not warning in cast of numpy classes if they are compatible with expected type
    * fix lint issue
    * simplify class checking
    hhorii committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    3fec341 View commit details
    Browse the repository at this point in the history
  4. Fix handling of None in noise model construction from BackendV2 (Qisk…

    …it#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
    itoko authored and hhorii committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    47c33ef View commit details
    Browse the repository at this point in the history
  5. Add Getting Started page (Qiskit#1780)

    This commit adds documentation "Getting Started" page.
    
    * Add Get Started page
    * Remove unused class
    
    ---------
    Co-authored-by: Hiroshi Horii <[email protected]>
    hitomitak authored and hhorii committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    cb0f5b1 View commit details
    Browse the repository at this point in the history
  6. avoid kernel crash from blas call errors (Qiskit#1791)

    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    hhorii and mergify[bot] committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    b23d0d2 View commit details
    Browse the repository at this point in the history
  7. fix fail of qobj run without run_options (Qiskit#1792)

    * fix fail of qobj run without run_options
    
    * fix lint error
    
    ---------
    
    Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    hhorii and mergify[bot] committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    fc5c11b View commit details
    Browse the repository at this point in the history
  8. Support parameterized global phase (Qiskit#1814)

    * Support parameterized global phase
    
    Though `ParameterExpression` can be set to `QuantumCircuit.global_phase`,
    Aer does not bind parameter values to it in simulation phase. This commit fixes
    this problem by resolving values of `global_phase` with specified `parameter_binds`
    in `AerSimulator.run`.
    
    * define AER::CONFIG::GLOBAL_PHASE_POS and its pybind
    * fix lint issues
    ---------
    Co-authored-by: Jun Doi <[email protected]>
    hhorii committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    033e601 View commit details
    Browse the repository at this point in the history
  9. check parameter_binds arguments for parameterized circuits (Qiskit#1817)

    Aer raises an error if `parameter_binds` is not specified though circuits have parameters.
    This resolves the following issue:
    Qiskit#1773
    hhorii committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    134f6e2 View commit details
    Browse the repository at this point in the history
  10. Set the number of qubits with the coupling map (Qiskit#1825)

    * Set n_qubits from coupling map
    
    * Add a test and release notes
    
    * Fix lint
    
    ---------
    
    Co-authored-by: Hiroshi Horii <[email protected]>
    hitomitak and hhorii committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    bd6d8db View commit details
    Browse the repository at this point in the history
  11. Fixing some typos (Qiskit#1827)

    * Update aer_densitymatrix.py
    
    * Update aer_statevector.py
    
    * Update README.md
    
    * Update CONTRIBUTING.md
    
    ---------
    
    Co-authored-by: Hiroshi Horii <[email protected]>
    Innanov and hhorii committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    6516885 View commit details
    Browse the repository at this point in the history
  12. Use transpile and run instead of execute in docstring (Qiskit#1830)

    * use transpile and run instead of execute in docstring
    
    * use backend.run instead of execute in README
    
    * use fake_provider for noise_model example
    
    * Revert edits on README.md
    
    * Update examples in docstring for qiskit_aer.noise
    
    * Fix depolarizing noise model example
    
    * Remove incorrect markup in noise/__init__.py
    
    ---------
    
    Co-authored-by: Hiroshi Horii <[email protected]>
    dakk and hhorii committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    5b4913c View commit details
    Browse the repository at this point in the history
  13. Fix typos in aer_simulator, qasm_simulator docs (Qiskit#1833)

    * Fix typos.
    
    * Add missing aer_simulator options.
    
    * Update reference to SaveProbabilities according comment to PR.
    TerraVenil authored and hhorii committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    a02e7ca View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    48656b3 View commit details
    Browse the repository at this point in the history
  15. Warn if approximation=False and shots=None in Estimator (Qiskit#1823)

    * fix 1820
    
    * rm unnecessary comment
    
    * update docs
    
    ---------
    
    Co-authored-by: Hiroshi Horii <[email protected]>
    ikkoham and hhorii committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    72cd926 View commit details
    Browse the repository at this point in the history
  16. Fix the grouping index bug in Estimator (Qiskit#1839)

    * Fix the bug
    
    * lint
    ikkoham authored and hhorii committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    ca52cc0 View commit details
    Browse the repository at this point in the history
  17. Validate parameters of each gate in a circuit (Qiskit#1834)

    This commit adds checks of arguments (A number of qubits, clbits,
    and parameters) for each gate to prevent from unexpected memory access
    when a user defines wrong custom gate with a number of a standard gate.
    
    * validate parameters of each gate in a circuit
    * fix lint error
    * fix lint error
    hhorii committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    23eee8f View commit details
    Browse the repository at this point in the history
  18. Correct a type of variance from complex to real (Qiskit#1767)

    Previously Aer Estimator wrongly returned a complex value as variance of estimation values.
    This commit fixes this behavior to return a real value.
    ikkoham authored and hhorii committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    b11ad28 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    b2fc156 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. Do not use circuit metadata to internally manage simulation results (Q…

    …iskit#1772)
    
    * Stop using circuit metadata to internaly manage simulation results
    
    This fixes `AerSimulator` to use circuit metadata to maintain mapping
    from input and output of an executor call. This fixes an issue
    Qiskit#1723.
    
    * add index of AER::Circuit and ExperimentResult
    
    * add a link to an input circuit in each experiment result
    hhorii committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    3b69d9a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fbec47c View commit details
    Browse the repository at this point in the history
  3. Batch QuantumCircuit with multiple parameter_binds (Qiskit#1840)

    `Estimator` in Aer did not use parameter bindings appropriately. Backend is called multiple times 
    to simulate a circuit with multiple parameter-sets. This commit is to call backend once for multiple
    parameter-sets for a circuit.
    
    * WIP
    * refactor
    * lint
    * add reno
    ikkoham authored and hhorii committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    8d45184 View commit details
    Browse the repository at this point in the history
  4. add release note with prelude

    hhorii committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    1f6f4b3 View commit details
    Browse the repository at this point in the history
  5. *Support initialize with int (Qiskit#1841)

    Previously `QuantumCircuit.initialize` was not correctly preocessed
    if initial state is specified with single `int` value. This commit
    fixes this issue by decomposing initialize instructions.
    hhorii committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    e469b9c View commit details
    Browse the repository at this point in the history