Skip to content

Commit

Permalink
Merge branch 'develop' into feature-mcfe-extras
Browse files Browse the repository at this point in the history
  • Loading branch information
sserita committed Sep 21, 2023
2 parents 879aad1 + 0509295 commit baa1f0c
Show file tree
Hide file tree
Showing 257 changed files with 4,770 additions and 4,004 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/extras.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Install package
run: |
python -m pip install --upgrade pip
# Installing with -e to keep installation local (for NOSE_NOPATH)
# Installing with -e to keep installation local
# but still compile Cython extensions
python -m pip install -e .[testing]
python setup.py build_ext --inplace
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Install package
run: |
python -m pip install --upgrade pip
# Installing with -e to keep installation local (for NOSE_NOPATH)
# Installing with -e to keep installation local
# but still compile Cython extensions
python -m pip install -e .[testing]
python setup.py build_ext --inplace
Expand Down
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*.pyd
.ipynb_checkpoints
test/test_packages/temp_test_files/*
test/test_packages/gst_checkpoints/*
jupyter_notebooks/**/offline
test/test_packages/offline
hooks/etc/permissions.yml
Expand All @@ -20,8 +21,10 @@ hooks/etc/permissions.yml
.ropeproject
.vscode
doc/_autosummary
doc/autoapi
doc/build
.venv
.venv*


# Test Metadata #
#################
Expand All @@ -45,6 +48,8 @@ jupyter_notebooks/Tutorials/tutorial_files/exampleMultiDataSetReport
jupyter_notebooks/Tutorials/tutorial_files/exampleBriefReport
jupyter_notebooks/Tutorials/tutorial_files/*.ipynb
jupyter_notebooks/Tutorials/tutorial_files/tempTest
jupyter_notebooks/Tutorials/tutorial_files/*checkpoints



# Compiled source #
Expand All @@ -66,6 +71,7 @@ dist/*
/pygsti.egg-info
/pyGSTi.egg-info
parsetab_string.py
*.pyd

# These are handwritten, not generated by cython, and should not be ignored
!/pygsti/objects/replib/fastreps.cpp
Expand Down
58 changes: 58 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Read the Docs configuration file for Sphinx projects

# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details


# Required

version: 2


# Set the OS, Python version and other tools you might need

build:

os: ubuntu-22.04

tools:

python: "3.11"

# You can also specify other tool versions:

# nodejs: "19"

# rust: "1.64"

# golang: "1.19"


# Build documentation in the "docs/" directory with Sphinx

sphinx:

configuration: doc/conf.py


# Optionally build your docs in additional formats such as PDF and ePub

# formats:

# - pdf

# - epub


# Optional but recommended, declare the Python requirements required

# to build your documentation

# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html

python:

install:
- requirements: rtd-requirements.txt

- method: pip
path: .
15 changes: 15 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# CHANGELOG

## [0.9.11.2] - 2023-08-11

### Fixed

- Fixed FAQ hyperlinks (#304)
- Removed deprecated functions for NumPy 1.25+ (#335)
- Fixed pickling of TPPOVM objects (#336)
- Updated the ReadTheDocs builds (#331)
- Fixed dataset pickling (#326)
- Removed deprecated functions for notebook 7+ (#337)

### Changed

- Slight performance improvements for GST fitting (#305)

## [0.9.11.1] - 2023-05-19

### Fixed
Expand Down
5 changes: 0 additions & 5 deletions doc/_templates/autosummary/base.rst

This file was deleted.

5 changes: 0 additions & 5 deletions doc/_templates/autosummary/class.rst

This file was deleted.

43 changes: 0 additions & 43 deletions doc/_templates/autosummary/module.rst

This file was deleted.

65 changes: 0 additions & 65 deletions doc/_templates/custom-module-template.rst

This file was deleted.

15 changes: 15 additions & 0 deletions doc/_templates/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
API Reference
=============

This page contains auto-generated API reference documentation [#f1]_.

.. toctree::
:titlesonly:

{% for page in pages %}
{% if page.top_level_object and page.display %}
{{ page.include_path }}
{% endif %}
{% endfor %}

.. [#f1] Created with `sphinx-autoapi <https://github.com/readthedocs/sphinx-autoapi>`_
1 change: 1 addition & 0 deletions doc/_templates/python/attribute.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends "python/data.rst" %}
60 changes: 60 additions & 0 deletions doc/_templates/python/class.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{% if obj.display %}
.. py:{{ obj.type }}:: {{ obj.short_name }}{% if obj.args %}({{ obj.args }}){% endif %}
{% for (args, return_annotation) in obj.overloads %}
{{ " " * (obj.type | length) }} {{ obj.short_name }}{% if args %}({{ args }}){% endif %}

{% endfor %}


{% if obj.bases %}
{% if "show-inheritance" in autoapi_options %}
Bases: {% for base in obj.bases %}{{ base|link_objs }}{% if not loop.last %}, {% endif %}{% endfor %}
{% endif %}


{% if "show-inheritance-diagram" in autoapi_options and obj.bases != ["object"] %}
.. autoapi-inheritance-diagram:: {{ obj.obj["full_name"] }}
:parts: 1
{% if "private-members" in autoapi_options %}
:private-bases:
{% endif %}

{% endif %}
{% endif %}
{% if obj.docstring %}
{{ obj.docstring|indent(3) }}
{% endif %}
{% if "inherited-members" in autoapi_options %}
{% set visible_classes = obj.classes|selectattr("display")|list %}
{% else %}
{% set visible_classes = obj.classes|rejectattr("inherited")|selectattr("display")|list %}
{% endif %}
{% for klass in visible_classes %}
{{ klass.render()|indent(3) }}
{% endfor %}
{% if "inherited-members" in autoapi_options %}
{% set visible_properties = obj.properties|selectattr("display")|list %}
{% else %}
{% set visible_properties = obj.properties|rejectattr("inherited")|selectattr("display")|list %}
{% endif %}
{% for property in visible_properties %}
{{ property.render()|indent(3) }}
{% endfor %}
{% if "inherited-members" in autoapi_options %}
{% set visible_attributes = obj.attributes|selectattr("display")|list %}
{% else %}
{% set visible_attributes = obj.attributes|rejectattr("inherited")|selectattr("display")|list %}
{% endif %}
{% for attribute in visible_attributes %}
{{ attribute.render()|indent(3) }}
{% endfor %}
{% if "inherited-members" in autoapi_options %}
{% set visible_methods = obj.methods|selectattr("display")|list %}
{% else %}
{% set visible_methods = obj.methods|rejectattr("inherited")|selectattr("display")|list %}
{% endif %}
{% for method in visible_methods %}
{{ method.render()|indent(3) }}
{% endfor %}
{% endif %}
37 changes: 37 additions & 0 deletions doc/_templates/python/data.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% if obj.display %}
.. py:{{ obj.type }}:: {{ obj.name }}
{%- if obj.annotation is not none %}

:type: {%- if obj.annotation %} {{ obj.annotation }}{%- endif %}

{%- endif %}

{%- if obj.value is not none %}

:value: {% if obj.value is string and obj.value.splitlines()|count > 1 -%}
Multiline-String

.. raw:: html

<details><summary>Show Value</summary>

.. code-block:: python
"""{{ obj.value|indent(width=8,blank=true) }}"""
.. raw:: html

</details>

{%- else -%}
{%- if obj.value is string -%}
{{ "%r" % obj.value|string|truncate(100) }}
{%- else -%}
{{ obj.value|string|truncate(100) }}
{%- endif -%}
{%- endif %}
{%- endif %}


{{ obj.docstring|indent(3) }}
{% endif %}
1 change: 1 addition & 0 deletions doc/_templates/python/exception.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends "python/class.rst" %}
15 changes: 15 additions & 0 deletions doc/_templates/python/function.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% if obj.display %}
.. py:function:: {{ obj.short_name }}({{ obj.args }}){% if obj.return_annotation is not none %} -> {{ obj.return_annotation }}{% endif %}
{% for (args, return_annotation) in obj.overloads %}
{{ obj.short_name }}({{ args }}){% if return_annotation is not none %} -> {{ return_annotation }}{% endif %}

{% endfor %}
{% for property in obj.properties %}
:{{ property }}:
{% endfor %}

{% if obj.docstring %}
{{ obj.docstring|indent(3) }}
{% endif %}
{% endif %}
Loading

0 comments on commit baa1f0c

Please sign in to comment.