1 |
commit: f65a2dbe08cf3206de9eea56366e862039b7a34b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 6 11:44:16 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 6 14:06:25 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f65a2dbe |
7 |
|
8 |
dev-python/qiskit-terra: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/qiskit-terra/Manifest | 1 - |
13 |
.../qiskit-terra-0.19.2-test-corrections.patch | 36 ----------- |
14 |
dev-python/qiskit-terra/qiskit-terra-0.19.2.ebuild | 70 ---------------------- |
15 |
3 files changed, 107 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/qiskit-terra/Manifest b/dev-python/qiskit-terra/Manifest |
18 |
index b830a0afd9c7..6169933adde7 100644 |
19 |
--- a/dev-python/qiskit-terra/Manifest |
20 |
+++ b/dev-python/qiskit-terra/Manifest |
21 |
@@ -38,7 +38,6 @@ DIST pyo3-build-config-0.16.6.crate 28891 BLAKE2B 26667482bf9f5b140daab9728f5896 |
22 |
DIST pyo3-ffi-0.16.6.crate 60756 BLAKE2B 148e67de195577a1676c80be1a5538d80cf25b0d9eac9facfdcd223dc40484a9c3c7c84377f727e83e50118fa803591acc1d800b93adf29c91e6a15154c2856c SHA512 97c69900e2b355a002d10e48883cc8d4d9245d07f956087fb9c3b0ecfb9039c84c3f3a23f17caf28c637c4522f0fe252fbbb16b543825e4f724ee19232a34d22 |
23 |
DIST pyo3-macros-0.16.6.crate 8453 BLAKE2B 518809b1236149f14b264d48f642e873aea2b22edb655cf4cf4d6307d2eeb7544228b80ca7559397d3483c837ae2ea9f772a26563d01a95613dad0a1a704c1e9 SHA512 95b6898da9974ef232b04197e47ea4e7d60de9f817da9a9995f07b05ca74965df2b2e8e8267d616b665b04ab810b93ca17255b20df89ac9c71014e5c9fd3a9f1 |
24 |
DIST pyo3-macros-backend-0.16.6.crate 49252 BLAKE2B 9fc531507d4f9d0e7ed183987fbabd043f7c31afe6488c53c6100d98e75e5296e9ee7cc4eb14798967ac62e7d8c31d602eac5166699058def384e4f029a3cf0b SHA512 49d82cff8762eeb27d8220aa98b2be43f614445f156212d45abef052e347ba2f4a7930e7c5c8a9843ea895ac5c223afc6527d036a9cad00efff9bda18907b019 |
25 |
-DIST qiskit-terra-0.19.2.gh.tar.gz 9536647 BLAKE2B 966370a782179512f3c4cd209f604f536ac4ac503f4805681d5729f4d6df4020bbaa5a2beb2fc393506eaa67a81666254375f14b827e07e1c1478a381fde5b45 SHA512 d02c028a86927610f1bca63830cb489069e68e016ed744a4092a96ddde163ea8ca1071048fc82b1807d4136e1fb2b0fcdde6d1a639ffc2ebe7c99dfd50c2e3d4 |
26 |
DIST qiskit-terra-0.22.0.gh.tar.gz 9243589 BLAKE2B 208f554de7fd6c11e76879a8c4c08f27859f1dd729494c3ab372e73e5205def0f97a5dac16bd26f632a80428d5ead1797509f67e78983eebdc34d092158a5124 SHA512 c7e901035e3bf57df7765ec84a1344663c8763c3da6b372202dde1abd9a840d5dc0f30b91d0fcc8516af28921c1fcedc84959e147f8dbfc372497a7d25a8c5a6 |
27 |
DIST quote-1.0.21.crate 28030 BLAKE2B 547344ba9272874f5fbb4bd27a69ef5be99823e10e1318afe71971b18f37e9c73d54168f16efb82c53a332e4874c80a82ea951fb2c85fad50cdfe783622b79fc SHA512 0728eb4df7e1f7c4d32ab08c901c2c969db8eb46b03bcec3e4956a4f6b360939d32abc6b6ebd7a31058e8e9b69c3d995a24cb484f93656f05b4ee963be1c74fc |
28 |
DIST rand-0.8.5.crate 87113 BLAKE2B 516f26bb2a969d0d79e957818133f35d2c0b4d9f1b401098ea23c5b80d27599e842b9298c0c5e46e2a6cb6953857bf8a9fb71ec9366c5ce6708cf17df14f179c SHA512 8b33a8988906ba5e2057a9a84bdd11f867a5536c22f5056eec59ed4ec4e3a6da2fd773da4c0510d343762e5a4ea0f007db4c4a7cef87a47f90e36c1a84d86fb2 |
29 |
|
30 |
diff --git a/dev-python/qiskit-terra/files/qiskit-terra-0.19.2-test-corrections.patch b/dev-python/qiskit-terra/files/qiskit-terra-0.19.2-test-corrections.patch |
31 |
deleted file mode 100644 |
32 |
index ec44ebe75faa..000000000000 |
33 |
--- a/dev-python/qiskit-terra/files/qiskit-terra-0.19.2-test-corrections.patch |
34 |
+++ /dev/null |
35 |
@@ -1,36 +0,0 @@ |
36 |
-diff --git a/test/python/qobj/test_pulse_converter.py b/test/python/qobj/test_pulse_converter.py |
37 |
-index ea5b77e78..cde568ecf 100644 |
38 |
---- a/test/python/qobj/test_pulse_converter.py |
39 |
-+++ b/test/python/qobj/test_pulse_converter.py |
40 |
-@@ -341,7 +341,8 @@ class TestQobjToInstructionConverter(QiskitTestCase): |
41 |
- |
42 |
- self.assertEqual(evaluated_instruction.start_time, 1) |
43 |
- self.assertEqual(evaluated_instruction.duration, 1) |
44 |
-- self.assertEqual(evaluated_instruction.instructions[0][-1], instruction) |
45 |
-+ self.assertEqual(evaluated_instruction.instructions[0][-1].channel, instruction.channel) |
46 |
-+ self.assertAlmostEqual(evaluated_instruction.instructions[0][-1].frequency, instruction.frequency) |
47 |
- |
48 |
- def test_delay(self): |
49 |
- """Test converted qobj from Delay.""" |
50 |
-diff --git a/test/randomized/test_transpiler_equivalence.py b/test/randomized/test_transpiler_equivalence.py |
51 |
-index 302760279..1d0a3e16f 100644 |
52 |
---- a/test/randomized/test_transpiler_equivalence.py |
53 |
-+++ b/test/randomized/test_transpiler_equivalence.py |
54 |
-@@ -21,7 +21,7 @@ from hypothesis.stateful import Bundle, RuleBasedStateMachine |
55 |
- |
56 |
- import hypothesis.strategies as st |
57 |
- |
58 |
--from qiskit import execute, transpile, Aer |
59 |
-+from qiskit import execute, transpile, BasicAer |
60 |
- from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister |
61 |
- from qiskit.circuit import Measure, Reset, Gate, Barrier |
62 |
- from qiskit.test.mock import ( |
63 |
-@@ -98,7 +98,7 @@ class QCircuitMachine(RuleBasedStateMachine): |
64 |
- qubits = Bundle("qubits") |
65 |
- clbits = Bundle("clbits") |
66 |
- |
67 |
-- backend = Aer.get_backend("qasm_simulator") |
68 |
-+ backend = BasicAer.get_backend("qasm_simulator") |
69 |
- max_qubits = int(backend.configuration().n_qubits / 2) |
70 |
- |
71 |
- def __init__(self): |
72 |
|
73 |
diff --git a/dev-python/qiskit-terra/qiskit-terra-0.19.2.ebuild b/dev-python/qiskit-terra/qiskit-terra-0.19.2.ebuild |
74 |
deleted file mode 100644 |
75 |
index 54fdccc634c0..000000000000 |
76 |
--- a/dev-python/qiskit-terra/qiskit-terra-0.19.2.ebuild |
77 |
+++ /dev/null |
78 |
@@ -1,70 +0,0 @@ |
79 |
-# Copyright 2022 Gentoo Authors |
80 |
-# Distributed under the terms of the GNU General Public License v2 |
81 |
- |
82 |
-EAPI=8 |
83 |
- |
84 |
-DISTUTILS_USE_PEP517=setuptools |
85 |
-PYTHON_COMPAT=( python3_{8..10} ) |
86 |
- |
87 |
-inherit distutils-r1 |
88 |
- |
89 |
-DESCRIPTION="Terra is the foundation on which Qiskit is built" |
90 |
-HOMEPAGE="https://github.com/Qiskit/qiskit-terra" |
91 |
-SRC_URI="https://github.com/Qiskit/qiskit-terra/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" |
92 |
- |
93 |
-LICENSE="Apache-2.0" |
94 |
-SLOT="0" |
95 |
-IUSE="+visualization" |
96 |
-KEYWORDS="~amd64" |
97 |
- |
98 |
-BDEPEND=">=dev-python/cython-0.27.1[${PYTHON_USEDEP}] |
99 |
- test? ( |
100 |
- >=dev-python/ddt-1.4.4[${PYTHON_USEDEP}] |
101 |
- >=dev-python/hypothesis-4.24.3[${PYTHON_USEDEP}] |
102 |
- >=dev-python/networkx-2.2[${PYTHON_USEDEP}] |
103 |
- app-text/poppler[png] |
104 |
- >=sci-libs/scikit-learn-0.20.0[${PYTHON_USEDEP}] |
105 |
- )" |
106 |
- |
107 |
-RDEPEND=" |
108 |
- >=dev-python/rustworkx-0.10.1[${PYTHON_USEDEP}] |
109 |
- >=dev-python/numpy-1.17[${PYTHON_USEDEP}] |
110 |
- >=dev-python/ply-3.10[${PYTHON_USEDEP}] |
111 |
- >=dev-python/psutil-5[${PYTHON_USEDEP}] |
112 |
- >=dev-python/scipy-1.5[${PYTHON_USEDEP}] |
113 |
- >=dev-python/sympy-1.3[${PYTHON_USEDEP}] |
114 |
- >=dev-python/dill-0.3[${PYTHON_USEDEP}] |
115 |
- >=dev-python/python-constraint-1.4[${PYTHON_USEDEP}] |
116 |
- >=dev-python/python-dateutil-2.8.0[${PYTHON_USEDEP}] |
117 |
- >=dev-python/stevedore-3.0.0[${PYTHON_USEDEP}] |
118 |
- >=dev-python/symengine-0.8[${PYTHON_USEDEP}] |
119 |
- >=dev-python/tweedledum-1.1[${PYTHON_USEDEP}] |
120 |
- visualization? ( |
121 |
- >=dev-python/matplotlib-3.3[${PYTHON_USEDEP}] |
122 |
- >=dev-python/ipywidgets-7.3.0[${PYTHON_USEDEP}] |
123 |
- dev-python/pydot[${PYTHON_USEDEP}] |
124 |
- >=dev-python/pillow-4.2.1[${PYTHON_USEDEP}] |
125 |
- >=dev-python/pylatexenc-1.4[${PYTHON_USEDEP}] |
126 |
- >=dev-python/seaborn-0.9.0[${PYTHON_USEDEP}] |
127 |
- >=dev-python/pygments-2.4[${PYTHON_USEDEP}] |
128 |
- )" |
129 |
- |
130 |
-distutils_enable_tests pytest |
131 |
- |
132 |
-# Small issues with the tests. |
133 |
-# qiskit.Aer module depends on qiskit-terra, it cannot be used, |
134 |
-# and an exact comparison of float switched to approximate comparison. |
135 |
-PATCHES=( "${FILESDIR}/qiskit-terra-0.19.2-test-corrections.patch" ) |
136 |
- |
137 |
-python_test() { |
138 |
- # We have to hide the source code directory so tests |
139 |
- # do not use these, but instead the compiled library. |
140 |
- mv qiskit qiskit.hidden || die |
141 |
- |
142 |
- # Some small tests are failing which test optional features. |
143 |
- # Why they fail is still under investigation. |
144 |
- # transpiler_equivalence tests take too long time, they are also skipped. |
145 |
- epytest -k 'not (TestOptions and test_copy) and not TestUnitarySynthesisPlugin and not test_transpiler_equivalence and not (TestPauliSumOp and test_to_instruction)' |
146 |
- |
147 |
- mv qiskit.hidden qiskit || die |
148 |
-} |