Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for docs and readme, files for Pypi #166

Merged
merged 10 commits into from
Jun 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 38 additions & 29 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. raw:: html
|tangelo_logo|

<img src="./docs/source/_static/img/tangelo_logo_gradient.png" align="center" width="600px" alt="tangelo_logo">

|
.. |tangelo_logo| image:: ./docs/source/_static/img/tangelo_logo_gradient.png
:width: 600
:alt: tangelo_logo

|maintainer| |licence| |systems| |dev_branch|

Expand Down Expand Up @@ -36,18 +36,20 @@ help.
This package provides a growing collection of algorithms and toolboxes, including problem decomposition, to support the development of and the design of successful experiments on quantum devices. Tangelo is backend-agnostic,
so that users can write code once and experiment with current and future platforms with minimal changes.

.. raw:: html

<img src="./docs/source/_static/img/curve_dmet_qcc.png" align="right" width="400px" alt="curve">

Tangelo was used to perform quantum experiments that led to `peer-reviewed work <https://www.nature.com/articles/s42005-021-00751-9>`_
published in scientific journals,
co-authored by professionals from the chemical industry and quantum hardware manufacturers.

|curve|

.. |curve| image:: ./docs/source/_static/img/curve_dmet_qcc.png
:width: 400
:alt: curve

We hope to grow a healthy community around Tangelo, collaborate, and together leverage the best of what the field has to offer.

- Our paper on arXiv (link updated as soon as available)
- `Sphinx documentation <http://tangelo-docs.goodchemistry.com>`_.
- Our `Sphinx documentation <http://tangelo-docs.goodchemistry.com>`_.

What will you do with Tangelo ?

Expand All @@ -60,27 +62,15 @@ This package requires a Python 3 environment. We recommend:
* installing the "dev" version of Python3 if you encounter missing header errors, such as ``python.h file not found``.
* having good C/C++ compilers and BLAS libraries to ensure good overall performance of computation-intensive code.

Quick note for Windows users
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Our installation instructions will work on Linux and MacOS systems. If you are using Windows, we recommend
you install the `Windows Linux Subsystem <https://docs.microsoft.com/en-us/windows/wsl/install>`_, which allows you
to run Ubuntu as an application. Once it has been installed, you can type ``explorer.exe`` in your Ubuntu terminal to
drag and drop files between your Windows and Linux environment.
Using pip
^^^^^^^^^

Here are a few essentials to install inside a brand new Ubuntu environment, before trying to install Tangelo:
The easiest way to install Tangelo in your environment. We recommend upgrading pip first:

.. code-block::

sudo apt update && sudo apt upgrade
sudo apt-get install python3-dev
sudo apt-get install python3-venv
sudo apt-get install cmake unzip

Using pip
^^^^^^^^^

TODO: once this package is available on pypi, give the command.
python -m pip install -–upgrade pip.
pip install tangelo-gc

From source, using setuptools
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -99,7 +89,7 @@ separately with ``pip``\ , before trying again.
Optional dependencies
^^^^^^^^^^^^^^^^^^^^^

Tangelo enables users to target various backends. In particular, it integrates quantum circuit simulators such as
Tangelo enables users to target various backends. In particular, it integrates quantum circuit simulators such as
``qulacs``\ , ``qiskit``\ , ``cirq`` or ``qdk``. We leave it to you to install the packages of your choice.
Most packages can be installed through pip in a straightforward way:

Expand All @@ -110,9 +100,28 @@ Most packages can be installed through pip in a straightforward way:
pip install cirq
...

Depending on your OS and environment, some of these packages may be more challenging to install. For installing Microsoft's QDK
Depending on your OS and environment, some of these packages may be more challenging to install. For installing Microsoft's QDK
or any issue regarding the above packages, please check their respective documentation.


Quick note for Windows users
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Our installation instructions will work on Linux and MacOS systems. If you are using Windows, we recommend
you install the `Windows Linux Subsystem <https://docs.microsoft.com/en-us/windows/wsl/install>`_, which allows you
to run Ubuntu as an application. Once it has been installed, you can type ``explorer.exe`` in your Ubuntu terminal to
drag and drop files between your Windows and Linux environment.

Here are a few essentials to install inside a brand new Ubuntu environment, before trying to install Tangelo:

.. code-block::

sudo apt update && sudo apt upgrade
sudo apt-get install python3-dev
sudo apt-get install python3-venv
sudo apt-get install cmake unzip


Optional: environment variables
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down Expand Up @@ -171,4 +180,4 @@ If you use Tangelo in your research, please cite:

[TODO: Placeholder Tangelo for arXiv paper]

© Good Chemistry Company 2021. This software is released under the Apache Software License version 2.0.
© Good Chemistry Company 2022. This software is released under the Apache Software License version 2.0.
Binary file added docs/source/_static/img/tangelo_logo_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_css_files = ['css/custom.css'] # works (path relative to html_static_path)
html_logo = './_static/img/tangelo_name_white.png' # works (path relative to conf.py)
html_logo = './_static/img/tangelo_logo_white.png' # works (path relative to conf.py)

autodoc_mock_imports = ['qemist-client', 'PIL', 'Pillow', 'qsharp']
1 change: 1 addition & 0 deletions docs/source/docs/source/_static/img/curve_dmet_qcc.png
1 change: 1 addition & 0 deletions docs/source/docs/source/_static/img/quantum_workflow.png
6 changes: 3 additions & 3 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

Welcome to tangelo's documentation!
================================
Welcome to Tangelo's documentation!
===================================

.. toctree::
:maxdepth: 2
:caption: Contents:

README
overview
tangelo

Indices and tables
Expand Down
4 changes: 4 additions & 0 deletions docs/source/overview.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Overview
========

.. include:: README.rst
15 changes: 7 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
def install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", package])


with open("tangelo/_version.py") as f:
version = f.readlines()[-1].split()[-1].strip("\"'")
version = '0.3.0'

with open('README.rst', 'r') as f:
long_description = f.read()
Expand All @@ -17,14 +15,15 @@ def install(package):
install('pyscf')
install('git+https://github.com/pyscf/semiempirical')

description = "Maintained by Good Chemistry Company, focusing on the development of end-to-end materials simulation workflows on quantum computers."

setuptools.setup(
name="tangelo",
name="tangelo-gc",
author="The Tangelo developers",
version=version,
description="Tangelo is a python package developed by Good Chemistry Company, focusing on the development "
"of end-to-end materials simulation workflows on quantum computers.",
long_description=long_description,
long_description_content_type="text/x-rst",
description=description,
long_description=description,
#long_description_content_type=description,
url="https://github.com/goodchemistryco/Tangelo",
packages=setuptools.find_packages(),
test_suite="tangelo",
Expand Down