-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #398 from atilag/stable-0.3.1
Stable 0.3.1
- Loading branch information
Showing
116 changed files
with
5,603 additions
and
1,690 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,5 @@ contrib/standalone/version.hpp | |
*.env | ||
*.idea/ | ||
test/.asv | ||
|
||
.tox/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,42 @@ | ||
function(add_linter target) | ||
find_program(CLANG_TIDY_EXE "clang-tidy") | ||
if(NOT CLANG_TIDY_EXE) | ||
message(WARNING "The 'lint' target will not be available: 'clang-tidy' was not found.") | ||
message(WARNING "Bypassing C++ linter because 'clang-tidy' was not found.") | ||
else() | ||
# TODO: Once final checks are decided, add "-warnings-as-errors=*". | ||
set(CLANG_TIDY_PROPERTIES "${CLANG_TIDY_EXE}" | ||
"-checks=*" | ||
"-format-style=google" | ||
"-header-filter=\"${AER_SIMULATOR_CPP_SRC_DIR}\"" | ||
"-quiet") | ||
# This will add the linter as part of the build process | ||
set_target_properties(${target} PROPERTIES | ||
CXX_CLANG_TIDY "${CLANG_TIDY_PROPERTIES}") | ||
message("Clang Tidy linter will be passed at build time") | ||
|
||
# We create two more custom targets, so we can invoque both linter and | ||
# format from the command line. | ||
|
||
# Get all project files | ||
file(GLOB_RECURSE ALL_SOURCE_FILES *.cpp *.hpp) | ||
add_custom_target( | ||
linter | ||
COMMAND ${CLANG_TIDY_EXE} | ||
${ALL_SOURCE_FILES} | ||
${CLANG_TIDY_PROPERTIES} | ||
${INCLUDE_DIRECTORIES} | ||
) | ||
|
||
find_program(CLANG_TIDY_FORMAT "clang-format") | ||
if(NOT CLANG_TIDY_FORMAT) | ||
message(WARNING "Bypassing C++ auto-format because 'clang-format' was not found.") | ||
else() | ||
add_custom_target( | ||
format | ||
COMMAND ${CLANG_TIDY_FORMAT} | ||
-style=file | ||
-i | ||
${ALL_SOURCE_FILES} | ||
) | ||
endif() | ||
endif() | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pylint==2.4.1 | ||
astroid==2.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This code is part of Qiskit. | ||
# | ||
# (C) Copyright IBM 2018. | ||
# | ||
# This code is licensed under the Apache License, Version 2.0. You may | ||
# obtain a copy of this license in the LICENSE.txt file in the root directory | ||
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# Any modifications or derivative works of this code must retain this | ||
# copyright notice, and modified files need to carry a notice indicating | ||
# that they have been altered from the originals. | ||
|
||
# You can set these variables from the command line. | ||
SPHINXOPTS = | ||
SPHINXBUILD = sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.. _qiskit-providers-aer: | ||
|
||
************************* | ||
qiskit.providers.aer | ||
************************* | ||
|
||
.. currentmodule:: qiskit.providers.aer | ||
|
||
|
||
.. automodapi:: qiskit.providers.aer | ||
:no-heading: | ||
:no-inheritance-diagram: | ||
:inherited-members: | ||
|
||
Submodules | ||
========== | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
aer_backends | ||
noise/noise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _qiskit-providers-aer-backends: | ||
|
||
***************************** | ||
qiskit.providers.aer.backends | ||
***************************** | ||
|
||
.. currentmodule:: qiskit.providers.aer.backends | ||
|
||
|
||
.. automodapi:: qiskit.providers.aer.backends | ||
:no-heading: | ||
:no-inheritance-diagram: | ||
:inherited-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _qiskit-providers-aer-noise: | ||
|
||
************************** | ||
qiskit.providers.aer.noise | ||
************************** | ||
|
||
.. currentmodule:: qiskit.providers.aer.noise | ||
|
||
|
||
.. automodapi:: qiskit.providers.aer.noise | ||
:no-heading: | ||
:no-inheritance-diagram: | ||
:inherited-members: |
Oops, something went wrong.