1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class PyQiskitTerra(PythonPackage):
"""Qiskit is an open-source SDK for working with quantum computers
at the level of extended quantum circuits, operators, and
algorithms."""
homepage = "https://github.com/Qiskit/qiskit-terra"
pypi = "qiskit-terra/qiskit-terra-0.18.3.tar.gz"
version("0.22.2", sha256="efd212cd98479ebedc8cc1f93d4eb8039f21c07bd39a62065b584e02d72e632d")
version("0.18.3", sha256="8737c8f1f4c6f29ec2fb02d73023f4854a396c33f78f4629a861a3e48fc789cc")
depends_on("py-setuptools", type="build")
depends_on("py-numpy@1.17:", type=("build", "run"))
depends_on("py-ply@3.10:", type=("build", "run"))
depends_on("py-sympy@1.3:", type=("build", "run"))
depends_on("py-dill@0.3:", type=("build", "run"))
depends_on("py-python-dateutil@2.8.0:", type=("build", "run"))
depends_on("py-tweedledum@1.1:1", type=("build", "run"), when="^python@:3.11")
depends_on("py-stevedore@3.0.0:", type=("build", "run"))
depends_on("py-psutil@5:", type=("build", "run"))
with when("@0.18.3"):
depends_on("python@3.6:", type=("build", "run"))
depends_on("py-cython@0.27.1:", type="build")
depends_on("py-jsonschema@2.6:", type=("build", "run"))
depends_on("py-retworkx@0.9.0:", type=("build", "run"))
depends_on("py-scipy@1.4:", type=("build", "run"))
depends_on("py-fastjsonschema@2.10:", type=("build", "run"))
depends_on("py-python-constraint@1.4:", type=("build", "run"))
depends_on("py-symengine@0.7:", type=("build", "run"))
with when("@0.22.2"):
depends_on("python@3.7:", type=("build", "run"))
depends_on("py-setuptools-rust", type="build")
depends_on("py-retworkx@0.11.0:", type=("build", "run"))
depends_on("py-scipy@1.5:", type=("build", "run"))
depends_on("py-symengine@0.9:", type=("build", "run"))
depends_on("py-typing-extensions", when="^python@:3.7", type=("build", "run"))
depends_on("py-shared-memory38", when="^python@:3.7", type=("build", "run"))
depends_on("py-importlib-metadata@:4", when="^python@:3.7", type=("build", "run"))
|