python3Packages.qiskit-aer: 0.6.1 -> 0.7.1

This commit is contained in:
Drew Risinger 2020-11-04 12:37:48 -05:00 committed by Jonathan Ringer
parent 53bfcf5058
commit d6859df0d5

View File

@ -3,34 +3,38 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
# C Inputs
, blas
, catch2
, cmake , cmake
, cvxpy
, cython , cython
, muparserx , muparserx
, ninja , ninja
, nlohmann_json , nlohmann_json
, spdlog
# Python Inputs
, cvxpy
, numpy , numpy
, openblas
, pybind11 , pybind11
, scikit-build , scikit-build
, spdlog
# Check Inputs # Check Inputs
, qiskit-terra
, pytestCheckHook , pytestCheckHook
, python , ddt
, fixtures
, qiskit-terra
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "qiskit-aer"; pname = "qiskit-aer";
version = "0.6.1"; version = "0.7.1";
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Qiskit"; owner = "Qiskit";
repo = "qiskit-aer"; repo = "qiskit-aer";
rev = version; rev = version;
sha256 = "1fnv11diis0as8zcc57mamz0gbjd6vj7nw3arxzvwa77ja803sr4"; sha256 = "07l0wavdknx0y4vy0hwgw24365sg4nb6ygl3lpa098np85qgyn4y";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -40,10 +44,11 @@ buildPythonPackage rec {
]; ];
buildInputs = [ buildInputs = [
openblas blas
spdlog catch2
nlohmann_json
muparserx muparserx
nlohmann_json
spdlog
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -60,11 +65,6 @@ buildPythonPackage rec {
dontUseCmakeConfigure = true; dontUseCmakeConfigure = true;
cmakeFlags = [
"-DBUILD_TESTS=True"
"-DAER_THRUST_BACKEND=OMP"
];
# *** Testing *** # *** Testing ***
pythonImportsCheck = [ pythonImportsCheck = [
@ -72,11 +72,17 @@ buildPythonPackage rec {
"qiskit.providers.aer.backends.qasm_simulator" "qiskit.providers.aer.backends.qasm_simulator"
"qiskit.providers.aer.backends.controller_wrappers" # Checks C++ files built correctly. Only exists if built & moved to output "qiskit.providers.aer.backends.controller_wrappers" # Checks C++ files built correctly. Only exists if built & moved to output
]; ];
checkInputs = [ # Slow tests
qiskit-terra disabledTests = [
pytestCheckHook "test_paulis_1_and_2_qubits"
"test_3d_oscillator"
];
checkInputs = [
pytestCheckHook
ddt
fixtures
qiskit-terra
]; ];
dontUseSetuptoolsCheck = true; # Otherwise runs tests twice
preCheck = '' preCheck = ''
# Tests include a compiled "circuit" which is auto-built in $HOME # Tests include a compiled "circuit" which is auto-built in $HOME
@ -87,9 +93,7 @@ buildPythonPackage rec {
# Add qiskit-aer compiled files to cython include search # Add qiskit-aer compiled files to cython include search
pushd $HOME pushd $HOME
''; '';
postCheck = '' postCheck = "popd";
popd
'';
meta = with lib; { meta = with lib; {
description = "High performance simulators for Qiskit"; description = "High performance simulators for Qiskit";