summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 08:06:23 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 08:06:23 +0000
commit989e0de7042ab04ff6e1553ad49dfbd5f58f7fca (patch)
tree4b46503116faa721819651ce709854d5c41d1714
parent447f61e4f0f587c037d8b70a7a98802d4ee97e41 (diff)
automatic import of python-qibo
-rw-r--r--.gitignore1
-rw-r--r--python-qibo.spec289
-rw-r--r--sources1
3 files changed, 291 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..aa80d31 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/qibo-0.1.13.tar.gz
diff --git a/python-qibo.spec b/python-qibo.spec
new file mode 100644
index 0000000..8a4a2be
--- /dev/null
+++ b/python-qibo.spec
@@ -0,0 +1,289 @@
+%global _empty_manifest_terminate_build 0
+Name: python-qibo
+Version: 0.1.13
+Release: 1
+Summary: A framework for quantum computing with hardware acceleration.
+License: Apache-2.0
+URL: https://qibo.science/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/89/fb/b7d526b3afdf8c181134f1200efdea431b58fa342a95c58b45323acc9875/qibo-0.1.13.tar.gz
+BuildArch: noarch
+
+Requires: python3-cma
+Requires: python3-joblib
+Requires: python3-matplotlib
+Requires: python3-psutil
+Requires: python3-scipy
+Requires: python3-sympy
+Requires: python3-tabulate
+
+%description
+![](doc/source/qibo_logo.svg)
+
+![Tests](https://github.com/qiboteam/qibo/workflows/Tests/badge.svg)
+[![codecov](https://codecov.io/gh/qiboteam/qibo/branch/master/graph/badge.svg?token=1EKZKVEVX0)](https://codecov.io/gh/qiboteam/qibo)
+[![Documentation Status](https://readthedocs.org/projects/qibo/badge/?version=latest)](https://qibo.readthedocs.io/en/latest/?badge=latest)
+[![DOI](https://zenodo.org/badge/241307936.svg)](https://zenodo.org/badge/latestdoi/241307936)
+
+Qibo is an open-source full stack API for quantum simulation and quantum hardware control.
+
+Some of the key features of Qibo are:
+- Definition of a standard language for the construction and execution of quantum circuits with device agnostic approach to simulation and quantum hardware control based on plug and play backend drivers.
+- A continuously growing code-base of quantum algorithms applications presented with examples and tutorials.
+- Efficient simulation backends with GPU, multi-GPU and CPU with multi-threading support.
+- Simple mechanism for the implementation of new simulation and hardware backend drivers.
+
+## Documentation
+
+Qibo documentation is available [here](https://qibo.science).
+
+## Minimum Working Examples
+
+A simple [Quantum Fourier Transform (QFT)](https://en.wikipedia.org/wiki/Quantum_Fourier_transform) example to test your installation:
+```python
+from qibo.models import QFT
+
+# Create a QFT circuit with 15 qubits
+circuit = QFT(15)
+
+# Simulate final state wavefunction default initial state is |00>
+final_state = circuit()
+```
+
+Here another example with more gates and shots simulation:
+
+```python
+import numpy as np
+from qibo.models import Circuit
+from qibo import gates
+
+c = Circuit(2)
+c.add(gates.X(0))
+
+# Add a measurement register on both qubits
+c.add(gates.M(0, 1))
+
+# Execute the circuit with the default initial state |00>.
+result = c(nshots=100)
+```
+
+In both cases, the simulation will run in a single device CPU or GPU in double precision `complex128`.
+
+## Citation policy
+
+If you use the package please refer to [the documentation](https://qibo.science/qibo/stable/appendix/citing-qibo.html#publications) for citation instructions.
+
+## Supporters and collaborators
+
+- Quantum Research Center, Technology Innovation Institute (TII), United Arab Emirates
+- Università degli Studi di Milano (UNIMI), Italy.
+- Istituto Nazionale di Fisica Nucleare (INFN), Italy.
+- European Organization for Nuclear research (CERN), Switzerland.
+- Universitat de Barcelona (UB), Spain.
+- Barcelona Supercomputing Center (BSC), Spain.
+- Qilimanjaro Quantum Tech, Spain.
+- Centre for Quantum Technologies (CQT), Singapore.
+- Institute of High Performance Computing (IHPC), Singapore.
+- National Supercomputing Centre (NSCC), Singapore.
+- RIKEN Center for Computational Science (R-CCS), Japan.
+- NVIDIA (cuQuantum), USA.
+
+
+
+%package -n python3-qibo
+Summary: A framework for quantum computing with hardware acceleration.
+Provides: python-qibo
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-qibo
+![](doc/source/qibo_logo.svg)
+
+![Tests](https://github.com/qiboteam/qibo/workflows/Tests/badge.svg)
+[![codecov](https://codecov.io/gh/qiboteam/qibo/branch/master/graph/badge.svg?token=1EKZKVEVX0)](https://codecov.io/gh/qiboteam/qibo)
+[![Documentation Status](https://readthedocs.org/projects/qibo/badge/?version=latest)](https://qibo.readthedocs.io/en/latest/?badge=latest)
+[![DOI](https://zenodo.org/badge/241307936.svg)](https://zenodo.org/badge/latestdoi/241307936)
+
+Qibo is an open-source full stack API for quantum simulation and quantum hardware control.
+
+Some of the key features of Qibo are:
+- Definition of a standard language for the construction and execution of quantum circuits with device agnostic approach to simulation and quantum hardware control based on plug and play backend drivers.
+- A continuously growing code-base of quantum algorithms applications presented with examples and tutorials.
+- Efficient simulation backends with GPU, multi-GPU and CPU with multi-threading support.
+- Simple mechanism for the implementation of new simulation and hardware backend drivers.
+
+## Documentation
+
+Qibo documentation is available [here](https://qibo.science).
+
+## Minimum Working Examples
+
+A simple [Quantum Fourier Transform (QFT)](https://en.wikipedia.org/wiki/Quantum_Fourier_transform) example to test your installation:
+```python
+from qibo.models import QFT
+
+# Create a QFT circuit with 15 qubits
+circuit = QFT(15)
+
+# Simulate final state wavefunction default initial state is |00>
+final_state = circuit()
+```
+
+Here another example with more gates and shots simulation:
+
+```python
+import numpy as np
+from qibo.models import Circuit
+from qibo import gates
+
+c = Circuit(2)
+c.add(gates.X(0))
+
+# Add a measurement register on both qubits
+c.add(gates.M(0, 1))
+
+# Execute the circuit with the default initial state |00>.
+result = c(nshots=100)
+```
+
+In both cases, the simulation will run in a single device CPU or GPU in double precision `complex128`.
+
+## Citation policy
+
+If you use the package please refer to [the documentation](https://qibo.science/qibo/stable/appendix/citing-qibo.html#publications) for citation instructions.
+
+## Supporters and collaborators
+
+- Quantum Research Center, Technology Innovation Institute (TII), United Arab Emirates
+- Università degli Studi di Milano (UNIMI), Italy.
+- Istituto Nazionale di Fisica Nucleare (INFN), Italy.
+- European Organization for Nuclear research (CERN), Switzerland.
+- Universitat de Barcelona (UB), Spain.
+- Barcelona Supercomputing Center (BSC), Spain.
+- Qilimanjaro Quantum Tech, Spain.
+- Centre for Quantum Technologies (CQT), Singapore.
+- Institute of High Performance Computing (IHPC), Singapore.
+- National Supercomputing Centre (NSCC), Singapore.
+- RIKEN Center for Computational Science (R-CCS), Japan.
+- NVIDIA (cuQuantum), USA.
+
+
+
+%package help
+Summary: Development documents and examples for qibo
+Provides: python3-qibo-doc
+%description help
+![](doc/source/qibo_logo.svg)
+
+![Tests](https://github.com/qiboteam/qibo/workflows/Tests/badge.svg)
+[![codecov](https://codecov.io/gh/qiboteam/qibo/branch/master/graph/badge.svg?token=1EKZKVEVX0)](https://codecov.io/gh/qiboteam/qibo)
+[![Documentation Status](https://readthedocs.org/projects/qibo/badge/?version=latest)](https://qibo.readthedocs.io/en/latest/?badge=latest)
+[![DOI](https://zenodo.org/badge/241307936.svg)](https://zenodo.org/badge/latestdoi/241307936)
+
+Qibo is an open-source full stack API for quantum simulation and quantum hardware control.
+
+Some of the key features of Qibo are:
+- Definition of a standard language for the construction and execution of quantum circuits with device agnostic approach to simulation and quantum hardware control based on plug and play backend drivers.
+- A continuously growing code-base of quantum algorithms applications presented with examples and tutorials.
+- Efficient simulation backends with GPU, multi-GPU and CPU with multi-threading support.
+- Simple mechanism for the implementation of new simulation and hardware backend drivers.
+
+## Documentation
+
+Qibo documentation is available [here](https://qibo.science).
+
+## Minimum Working Examples
+
+A simple [Quantum Fourier Transform (QFT)](https://en.wikipedia.org/wiki/Quantum_Fourier_transform) example to test your installation:
+```python
+from qibo.models import QFT
+
+# Create a QFT circuit with 15 qubits
+circuit = QFT(15)
+
+# Simulate final state wavefunction default initial state is |00>
+final_state = circuit()
+```
+
+Here another example with more gates and shots simulation:
+
+```python
+import numpy as np
+from qibo.models import Circuit
+from qibo import gates
+
+c = Circuit(2)
+c.add(gates.X(0))
+
+# Add a measurement register on both qubits
+c.add(gates.M(0, 1))
+
+# Execute the circuit with the default initial state |00>.
+result = c(nshots=100)
+```
+
+In both cases, the simulation will run in a single device CPU or GPU in double precision `complex128`.
+
+## Citation policy
+
+If you use the package please refer to [the documentation](https://qibo.science/qibo/stable/appendix/citing-qibo.html#publications) for citation instructions.
+
+## Supporters and collaborators
+
+- Quantum Research Center, Technology Innovation Institute (TII), United Arab Emirates
+- Università degli Studi di Milano (UNIMI), Italy.
+- Istituto Nazionale di Fisica Nucleare (INFN), Italy.
+- European Organization for Nuclear research (CERN), Switzerland.
+- Universitat de Barcelona (UB), Spain.
+- Barcelona Supercomputing Center (BSC), Spain.
+- Qilimanjaro Quantum Tech, Spain.
+- Centre for Quantum Technologies (CQT), Singapore.
+- Institute of High Performance Computing (IHPC), Singapore.
+- National Supercomputing Centre (NSCC), Singapore.
+- RIKEN Center for Computational Science (R-CCS), Japan.
+- NVIDIA (cuQuantum), USA.
+
+
+
+%prep
+%autosetup -n qibo-0.1.13
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-qibo -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.13-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..ad14d14
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d31174c5cb364d843e9edaf7df691fc6 qibo-0.1.13.tar.gz