Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ contrib/standalone/version.hpp
test/.asv

.tox/

docs/_build/
docs/stubs/
docs/api/

25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,32 @@ Changelog](http://keepachangelog.com/en/1.0.0/).
> - **Fixed**: for any bug fixes.
> - **Security**: in case of vulnerabilities.

[UNRELEASED](https://github.com/Qiskit/qiskit-aer/compare/0.3.1...HEAD)
[UNRELEASED](https://github.com/Qiskit/qiskit-aer/compare/0.3.2...HEAD)
=======================================================================

Added
-----
- Added controlled gates (``cu1``, ``cu2``, ``cu3``) to simulator basis_gates (\#417)
- Added multi-controlled gates (``mcx``, ``mcy``, ``mcz``, ``mcu1``, ``mcu2``, ``mcu3``)
to simulator basis gates (\#417)
- Added gate definitions to simulator backend configurations (\#417)

Changed
-------
- Improved pershot snapshot data container performance (\#405)
- Add basic linear algebra functions for numeric STL classes (\#406)
- Improved average snapshot data container performance (\#407)

Removed
-------

Fixed
-----


[0.3.2](https://github.com/Qiskit/qiskit-aer/compare/0.3.1...0.3.2) - 2019-10-16
===============================================================================

Added
-----

Expand Down
106 changes: 70 additions & 36 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,73 @@ trigger:
- master
- stable

pool:
vmImage: 'vs2017-win2016'
strategy:
matrix:
Python35:
python.version: '3.5'
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'

steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH
- script: conda create --yes --quiet --name qiskit-aer-$(Build.BuildNumber)
displayName: Create Anaconda environment
- script: |
call activate qiskit-aer-$(Build.BuildNumber)
conda install --yes --quiet --name qiskit-aer-$(Build.BuildNumber) python=%PYTHON_VERSION% numpy
displayName: Install Anaconda packages
- bash: |
set -e
source activate qiskit-aer-$(Build.BuildNumber)
git clean -fdX
python -m pip install --disable-pip-version-check pip==18
pip install cython
pip install git+https://github.com/Qiskit/qiskit-terra.git
pip install --ignore-installed -r requirements-dev.txt
python setup.py bdist_wheel -- -G "Visual Studio 15 2017 Win64"
displayName: 'Install Dependencies and Build Aer'
- bash: |
set -e
source activate qiskit-aer-$(Build.BuildNumber)
pip install dist/qiskit_aer*.whl
python -m unittest discover -s test/terra -v
displayName: 'Install Aer and Run Tests'
jobs:
- job: 'Docs'
pool: {vmImage: 'ubuntu-16.04'}
strategy:
matrix:
Python37:
python.version: '3.7'
steps:
- checkout: self
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- bash: |
set -e
python -m pip install --upgrade pip virtualenv
pip install -U tox
sudo apt-get update
sudo apt-get install -y build-essential libopenblas-dev
displayName: 'Install dependencies'
- bash: |
tox -edocs -- -j auto
displayName: 'Run Docs build'
- task: PublishBuildArtifacts@1
displayName: 'Publish docs'
inputs:
pathtoPublish: 'docs/_build/html'
artifactName: 'html_docs'
- job: 'Windows'
pool: {vmImage: 'vs2017-win2016'}
strategy:
matrix:
Python35:
python.version: '3.5'
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'
steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH
- script: conda create --yes --quiet --name qiskit-aer-$(Build.BuildNumber) python=%PYTHON_VERSION%
displayName: Create Anaconda environment
- script: |
call activate qiskit-aer-$(Build.BuildNumber)
conda install --yes --quiet --name qiskit-aer-$(Build.BuildNumber) python=%PYTHON_VERSION% numpy
displayName: Install Anaconda packages
condition: ne(variables['python.version'], '3.5')
- script: |
call activate qiskit-aer-$(Build.BuildNumber)
conda install --yes --quiet --name qiskit-aer-$(Build.BuildNumber) python=%PYTHON_VERSION% mkl
conda install -c conda-forge --yes --quiet --name qiskit-aer-$(Build.BuildNumber) python=%PYTHON_VERSION% openblas
displayName: Install Anaconda packages
condition: eq(variables['python.version'], '3.5')
- bash: |
set -e
source activate qiskit-aer-$(Build.BuildNumber)
git clean -fdX
python -m pip install --disable-pip-version-check pip==18
pip install cython
pip install git+https://github.com/Qiskit/qiskit-terra.git
pip install --ignore-installed -r requirements-dev.txt
python setup.py bdist_wheel -- -G "Visual Studio 15 2017 Win64"
displayName: 'Install Dependencies and Build Aer'
- bash: |
set -e
source activate qiskit-aer-$(Build.BuildNumber)
pip install dist/qiskit_aer*.whl
python -m unittest discover -s test/terra -v
displayName: 'Install Aer and Run Tests'
12 changes: 12 additions & 0 deletions docs/_static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.wy-nav-content {
max-width: 90% !important;
}

.wy-side-scroll {
background:#8c8c8c;
}

.pre
{
color:#BE8184;
}
10 changes: 10 additions & 0 deletions docs/_templates/autosummary/base.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% if referencefile %}
.. include:: {{ referencefile }}
{% endif %}

{{ objname }}
{{ underline }}

.. currentmodule:: {{ module }}

.. auto{{ objtype }}:: {{ objname }}
49 changes: 49 additions & 0 deletions docs/_templates/autosummary/class.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{% if referencefile %}
.. include:: {{ referencefile }}
{% endif %}

{{ objname }}
{{ underline }}

.. currentmodule:: {{ module }}

.. autoclass:: {{ objname }}
:no-members:
:no-inherited-members:
:no-special-members:

{% block attributes_summary %}
{% if attributes %}

.. rubric:: Attributes

.. autosummary::
:toctree: ../stubs/
{% for item in all_attributes %}
{%- if not item.startswith('_') %}
{{ name }}.{{ item }}
{%- endif -%}
{%- endfor %}
{% endif %}
{% endblock %}

{% block methods_summary %}
{% if methods %}

.. rubric:: Methods

.. autosummary::
:toctree: ../stubs/
{% for item in all_methods %}
{%- if not item.startswith('_') or item in ['__call__', '__mul__', '__getitem__', '__len__'] %}
{{ name }}.{{ item }}
{%- endif -%}
{%- endfor %}
{% for item in inherited_members %}
{%- if item in ['__call__', '__mul__', '__getitem__', '__len__'] %}
{{ name }}.{{ item }}
{%- endif -%}
{%- endfor %}

{% endif %}
{% endblock %}
41 changes: 41 additions & 0 deletions docs/_templates/autosummary/module.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{% if referencefile %}
.. include:: {{ referencefile }}
{% endif %}

{{ objname }}
{{ underline }}

.. automodule:: {{ fullname }}

{% block functions %}
{% if functions %}
.. rubric:: Functions

.. autosummary::
{% for item in functions %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block classes %}
{% if classes %}
.. rubric:: Classes

.. autosummary::
{% for item in classes %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block exceptions %}
{% if exceptions %}
.. rubric:: Exceptions

.. autosummary::
{% for item in exceptions %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
22 changes: 0 additions & 22 deletions docs/apidocs/aer.rst

This file was deleted.

13 changes: 0 additions & 13 deletions docs/apidocs/aer_backends.rst

This file was deleted.

6 changes: 6 additions & 0 deletions docs/apidocs/aer_extensions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _aer-circuit-extensions:

.. automodule:: qiskit.providers.aer.extensions
:no-members:
:no-inherited-members:
:no-special-members:
6 changes: 6 additions & 0 deletions docs/apidocs/aer_noise.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _aer-noise:

.. automodule:: qiskit.providers.aer.noise
:no-members:
:no-inherited-members:
:no-special-members:
6 changes: 6 additions & 0 deletions docs/apidocs/aer_noise_device.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _aer-noise-device:

.. automodule:: qiskit.providers.aer.noise.device
:no-members:
:no-inherited-members:
:no-special-members:
6 changes: 6 additions & 0 deletions docs/apidocs/aer_noise_errors.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _aer-noise-errors:

.. automodule:: qiskit.providers.aer.noise.errors
:no-members:
:no-inherited-members:
:no-special-members:
6 changes: 6 additions & 0 deletions docs/apidocs/aer_noise_utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _aer-noise-utils:

.. automodule:: qiskit.providers.aer.noise.utils
:no-members:
:no-inherited-members:
:no-special-members:
6 changes: 6 additions & 0 deletions docs/apidocs/aer_provider.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _aer-provider:

.. automodule:: qiskit.providers.aer
:no-members:
:no-inherited-members:
:no-special-members:
13 changes: 0 additions & 13 deletions docs/apidocs/noise/noise.rst

This file was deleted.

15 changes: 15 additions & 0 deletions docs/apidocs/qiskit_aer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.. _qiskit-aer:

=================
API Documentation
=================

.. toctree::
:maxdepth: 1

aer_provider
aer_extensions
aer_noise
aer_noise_errors
aer_noise_device
aer_noise_utils
Loading