Skip to content

Commit e81af30

Browse files
authored
Merge pull request #122 from Quantum-TII/logo
QIBO logo
2 parents e6e5474 + 93881e7 commit e81af30

File tree

8 files changed

+151
-15
lines changed

8 files changed

+151
-15
lines changed

.github/workflows/rules.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ jobs:
1818
python-version: ${{ matrix.python-version }}
1919
- name: Install package
2020
run: |
21-
pip install tensorflow
22-
pip install cirq
23-
pip install .[docs]
21+
pip install -r requirements.txt
22+
pip install .[docs,tests]
2423
- name: Test with pytest
2524
run: |
2625
pip install pytest-cov

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
![logo](doc/source/qibo_logo.svg)
2+
13
![Tests](https://github.com/Quantum-TII/qibo/workflows/Tests/badge.svg)
24
[![codecov](https://codecov.io/gh/Quantum-TII/qibo/branch/master/graph/badge.svg?token=1EKZKVEVX0)](https://codecov.io/gh/Quantum-TII/qibo)
35

4-
# QIBO
5-
66
QIBO is an open-source high-level API, written in Python and capable of performing classical simulation of quantum algorithms.
77

88
Some of the key features of QIBO are:

doc/source/conf.py

+6
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,9 @@
9797
def setup(app):
9898
app.add_config_value("recommonmark_config", {"enable_eval_rst": True}, True)
9999
app.add_transform(AutoStructify)
100+
101+
html_logo = "logo.png"
102+
103+
html_theme_options = {
104+
'logo_only': True,
105+
}

doc/source/logo.png

15.4 KB
Loading

doc/source/logo_black.png

12.1 KB
Loading

doc/source/qibo_logo.svg

+121
Loading

requirements.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Runtime requirements for qibo
2+
3+
numpy
4+
tensorflow>=2.1
5+
scipy
6+
cma

setup.py

+14-10
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
PACKAGE = "qibo"
1111

12-
12+
# Returns the qibo version
1313
def get_version():
1414
""" Gets the version from the package's __init__ file
1515
if there is some problem, let it happily fail """
@@ -21,7 +21,7 @@ def get_version():
2121
if mo:
2222
return mo.group(1)
2323

24-
24+
# Custom compilation step
2525
class Build(_build_py):
2626
def run(self):
2727
commands = [
@@ -33,6 +33,7 @@ def run(self):
3333
_build_py.run(self)
3434

3535

36+
# Register wheel with binary version
3637
class BinaryDistribution(Distribution):
3738
"""This class is needed in order to create OS specific wheels."""
3839

@@ -43,11 +44,16 @@ def is_pure(self):
4344
return False
4445

4546

47+
# Read in requirements
48+
requirements = open('requirements.txt').readlines()
49+
requirements = [r.strip() for r in requirements]
50+
51+
4652
setup(
4753
name="qibo",
4854
version=get_version(),
4955
description="Quantum computing framework",
50-
author="TII-Qilimanjaro team",
56+
author="Quantum-TII team",
5157
author_email="",
5258
url="https://github.com/Quantum-TII/qibo",
5359
packages=find_packages("src"),
@@ -58,17 +64,15 @@ def is_pure(self):
5864
zip_safe=False,
5965
distclass=BinaryDistribution,
6066
classifiers=[
61-
"Operating System :: Unix",
62-
"Programming Language :: Python",
6367
"Programming Language :: Python :: 3",
64-
"Topic :: Scientific/Engineering",
6568
"Topic :: Scientific/Engineering :: Physics",
6669
],
67-
setup_requires=["tensorflow>=2.1"],
68-
install_requires=["numpy", "tensorflow>=2.1", "scipy", "cma"],
70+
setup_requires=requirements,
71+
install_requires=requirements,
6972
extras_require={
70-
"docs": ["sphinx", "sphinx_rtd_theme", "recommonmark", "sphinxcontrib-bibtex"]
73+
"docs": ["sphinx", "sphinx_rtd_theme", "recommonmark", "sphinxcontrib-bibtex"],
74+
"tests": ["cirq"],
7175
},
72-
python_requires=">=3.6",
76+
python_requires=">=3.6.0",
7377
long_description="See readthedocs webpage with the documentation",
7478
)

0 commit comments

Comments
 (0)