Merge pull request #118729 from drewrisinger/dr-pr-qiskit-bump

authored by

Sandro and committed by
GitHub
c91ae16e 46163f6f

+89 -21
+2 -2
pkgs/development/python-modules/pylatexenc/default.nix
··· 6 6 7 7 buildPythonPackage rec { 8 8 pname = "pylatexenc"; 9 - version = "2.8"; 9 + version = "2.10"; 10 10 11 11 src = fetchFromGitHub { 12 12 owner = "phfaist"; 13 13 repo = "pylatexenc"; 14 14 rev = "v${version}"; 15 - sha256 = "0m9vrbh1gmbgq6dqm7xzklar3accadw0pn896rqsdi5jbgd3w0mh"; 15 + hash = "sha256-3Ho04qrmCtmmrR+BUJNbtdCZcK7lXhUGJjm4yfCTUkM="; 16 16 }; 17 17 18 18 pythonImportsCheck = [ "pylatexenc" ];
+14 -2
pkgs/development/python-modules/qiskit-aer/default.nix
··· 27 27 28 28 buildPythonPackage rec { 29 29 pname = "qiskit-aer"; 30 - version = "0.7.6"; 30 + version = "0.8.0"; 31 31 format = "pyproject"; 32 32 33 33 disabled = pythonOlder "3.6"; ··· 36 36 owner = "Qiskit"; 37 37 repo = "qiskit-aer"; 38 38 rev = version; 39 - sha256 = "0595as4rxjrd5dqx54ywz3rjsjk0z7r41bq0z9r8y1h7zgvvlrmn"; 39 + hash = "sha256-CWF3ehLs0HBXnYH11r+2CQwIcxddAfQm3ulAf1agl/o="; 40 40 }; 41 41 42 42 nativeBuildInputs = [ ··· 61 61 pybind11 62 62 ]; 63 63 64 + # tries to install pypi cmake package, not needed 64 65 postPatch = '' 65 66 substituteInPlace setup.py --replace "'cmake!=3.17,!=3.17.0'," "" 66 67 ''; ··· 83 84 disabledTests = [ 84 85 "test_paulis_1_and_2_qubits" 85 86 "test_3d_oscillator" 87 + "_057" 88 + "_136" 89 + "_137" 90 + "_139" 91 + "_138" 92 + "_140" 93 + "_141" 94 + "_143" 95 + "_144" 96 + "test_sparse_output_probabilities" 97 + "test_reset_2_qubit" 86 98 ]; 87 99 checkInputs = [ 88 100 pytestCheckHook
+9 -3
pkgs/development/python-modules/qiskit-aqua/default.nix
··· 34 34 35 35 buildPythonPackage rec { 36 36 pname = "qiskit-aqua"; 37 - version = "0.8.2"; 37 + version = "0.9.0"; 38 38 39 39 disabled = pythonOlder "3.6"; 40 40 ··· 43 43 owner = "Qiskit"; 44 44 repo = "qiskit-aqua"; 45 45 rev = version; 46 - sha256 = "sha256-ybf8bXqsVk6quYi0vrfo/Mplk7Nr7tQS7cevXxI9khw="; 46 + hash = "sha256-knue9uJih72UQHsvfXZ9AA94mol4ERa9Lo/GMcp+2hA="; 47 47 }; 48 48 49 49 # Optional packages: pyscf (see below NOTE) & pytorch. Can install via pip/nix if needed. ··· 74 74 # We disable appropriate tests below to allow building without pyscf installed 75 75 76 76 postPatch = '' 77 - substituteInPlace setup.py --replace "docplex==2.15.194" "docplex" 77 + # Because this is a legacy/final release, the maintainers restricted the maximum 78 + # versions of all dependencies to the latest current version. That will not 79 + # work with nixpkgs' rolling release/update system. 80 + # Unlock all versions for compatibility 81 + substituteInPlace setup.py --replace "<=" ">=" 82 + sed -i 's/\(\w\+-*\w*\).*/\1/' requirements.txt 83 + substituteInPlace requirements.txt --replace "dataclasses" "" 78 84 79 85 # Add ImportWarning when running qiskit.chemistry (pyscf is a chemistry package) that pyscf is not included 80 86 echo -e "\nimport warnings\ntry: import pyscf;\nexcept ImportError:\n " \
+2 -2
pkgs/development/python-modules/qiskit-ignis/default.nix
··· 23 23 24 24 buildPythonPackage rec { 25 25 pname = "qiskit-ignis"; 26 - version = "0.5.2"; 26 + version = "0.6.0"; 27 27 28 28 disabled = pythonOlder "3.6"; 29 29 ··· 32 32 owner = "Qiskit"; 33 33 repo = "qiskit-ignis"; 34 34 rev = version; 35 - sha256 = "sha256-Kl3tnoamZrCxwoDdu8betG6Lf3CC3D8R2TYiq8Zl3Aw="; 35 + hash = "sha256-L5fwCMsN03ojiDvKIyqsGfUnwej1P7bpyHlL6mu7nh0="; 36 36 }; 37 37 38 38 # hacky, fix https://github.com/Qiskit/qiskit-ignis/issues/532.
+18 -8
pkgs/development/python-modules/qiskit-terra/default.nix
··· 29 29 , withCrosstalkPass ? false 30 30 , z3 31 31 # Classical function -> Quantum Circuit compiler 32 - , withClassicalFunctionCompiler ? false 33 - , tweedledum ? null 32 + , withClassicalFunctionCompiler ? true 33 + , tweedledum 34 34 # test requirements 35 35 , ddt 36 36 , hypothesis ··· 56 56 57 57 buildPythonPackage rec { 58 58 pname = "qiskit-terra"; 59 - version = "0.16.4"; 59 + version = "0.17.0"; 60 60 61 61 disabled = pythonOlder "3.6"; 62 62 ··· 64 64 owner = "Qiskit"; 65 65 repo = pname; 66 66 rev = version; 67 - sha256 = "sha256-/rWlPfpAHoMedKG42jfUYt0Ezq7i+9dkyPllavkg4cc="; 67 + hash = "sha256-LbNbaHAWAVG5YLc9juuwcOlrREBW6OjEl7VPtACfl3I="; 68 68 }; 69 69 70 70 nativeBuildInputs = [ cython ]; ··· 100 100 "qiskit.transpiler.passes.routing.cython.stochastic_swap.swap_trial" 101 101 ]; 102 102 103 - pytestFlagsArray = [ 104 - "--ignore=test/randomized/test_transpiler_equivalence.py" # collection requires qiskit-aer, which would cause circular dependency 105 - ] ++ lib.optionals (!withClassicalFunctionCompiler ) [ 106 - "--ignore=test/python/classical_function_compiler/" 103 + disabledTestPaths = [ 104 + "test/randomized/test_transpiler_equivalence.py" # collection requires qiskit-aer, which would cause circular dependency 105 + ] ++ lib.optionals (!withClassicalFunctionCompiler) [ 106 + "test/python/classical_function_compiler/" 107 107 ]; 108 108 disabledTests = [ 109 109 # Flaky tests 110 110 "test_cx_equivalence" 111 111 "test_pulse_limits" 112 + ] ++ lib.optionals (!withClassicalFunctionCompiler) [ 113 + "TestPhaseOracle" 112 114 ] 113 115 # Disabling slow tests for build constraints 114 116 ++ [ ··· 130 132 "test_block_collection_reduces_1q_gate" 131 133 "test_multi_controlled_rotation_gate_matrices" 132 134 "test_block_collection_runs_for_non_cx_bases" 135 + "test_with_two_qubit_reduction" 136 + "test_basic_aer_qasm" 137 + "test_hhl" 138 + "test_H2_hamiltonian" 139 + "test_max_evals_grouped_2" 140 + "test_qaoa_qc_mixer_4" 141 + "test_abelian_grouper_random_2" 142 + "test_pauli_two_design" 133 143 ]; 134 144 135 145 # Moves tests to $PACKAGEDIR/test. They can't be run from /build because of finding
+2 -2
pkgs/development/python-modules/qiskit/default.nix
··· 15 15 buildPythonPackage rec { 16 16 pname = "qiskit"; 17 17 # NOTE: This version denotes a specific set of subpackages. See https://qiskit.org/documentation/release_notes.html#version-history 18 - version = "0.24.1"; 18 + version = "0.25.0"; 19 19 20 20 disabled = pythonOlder "3.6"; 21 21 ··· 23 23 owner = "qiskit"; 24 24 repo = "qiskit"; 25 25 rev = version; 26 - sha256 = "0qfz69n8sl7sk4hzygni9qars9q1cyz0n3bv1lca00ia5qsc72d2"; 26 + hash = "sha256-pJM6d3AyFs9AexvQXG+8QQ4zwpFisJC16iBFR9gNSk0="; 27 27 }; 28 28 29 29 propagatedBuildInputs = [
+3 -2
pkgs/development/python-modules/quandl/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "quandl"; 12 - version = "3.5.0"; 12 + version = "3.6.1"; 13 13 disabled = !isPy3k; 14 14 15 15 src = fetchPypi { 16 16 inherit version; 17 17 pname = "Quandl"; 18 - sha256 = "0zpw0nwqr4g56l9z4my0fahfgpcmfx74acbmv6nfx1dmq5ggraf3"; 18 + sha256 = "0jr69fqxhzdmkfh3fxz0yp2kks2hkmixrscjjf59q2l7irglwhc4"; 19 19 }; 20 20 21 21 checkInputs = [ ··· 51 51 meta = with lib; { 52 52 description = "Quandl Python client library"; 53 53 homepage = "https://github.com/quandl/quandl-python"; 54 + changelog = "https://github.com/quandl/quandl-python/blob/master/CHANGELOG.md"; 54 55 license = licenses.mit; 55 56 maintainers = with maintainers; [ ilya-kolpakov ]; 56 57 };
+37
pkgs/development/python-modules/tweedledum/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , cmake 5 + , ninja 6 + , scikit-build 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "tweedledum"; 11 + version = "1.0.0"; 12 + format = "pyproject"; 13 + 14 + src = fetchFromGitHub{ 15 + owner = "boschmitt"; 16 + repo = "tweedledum"; 17 + rev = "v${version}"; 18 + hash = "sha256-59lJzdw9HLJ9ADxp/a3KW4v5aU/dYm27NSYoz9D49i4="; 19 + }; 20 + 21 + nativeBuildInputs = [ cmake ninja scikit-build ]; 22 + dontUseCmakeConfigure = true; 23 + 24 + pythonImportsCheck = [ "tweedledum" ]; 25 + 26 + # TODO: use pytest, but had issues with finding the correct directories 27 + checkPhase = '' 28 + python -m unittest discover -s ./python/test -t . 29 + ''; 30 + 31 + meta = with lib; { 32 + description = "A library for synthesizing and manipulating quantum circuits"; 33 + homepage = "https://github.com/boschmitt/tweedledum"; 34 + license = licenses.mit ; 35 + maintainers = with maintainers; [ drewrisinger ]; 36 + }; 37 + }
+2
pkgs/top-level/python-packages.nix
··· 8574 8574 8575 8575 tvnamer = callPackage ../development/python-modules/tvnamer { }; 8576 8576 8577 + tweedledum = callPackage ../development/python-modules/tweedledum { }; 8578 + 8577 8579 tweepy = callPackage ../development/python-modules/tweepy { }; 8578 8580 8579 8581 twentemilieu = callPackage ../development/python-modules/twentemilieu { };