Skip to content

Commit

Permalink
revert lint cause its a nightmare
Browse files Browse the repository at this point in the history
  • Loading branch information
MIWdlB committed Dec 7, 2023
1 parent 71c51b6 commit 3554446
Show file tree
Hide file tree
Showing 37 changed files with 3,524 additions and 4,568 deletions.
33 changes: 16 additions & 17 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

# -- Project information -----------------------------------------------------

project = "Symmer"
copyright = "2023, Alexis Ralli, Tim Weaving"
author = "Alexis Ralli, Tim Weaving"
project = 'Symmer'
copyright = '2023, Alexis Ralli, Tim Weaving'
author = 'Alexis Ralli, Tim Weaving'


# -- General configuration ---------------------------------------------------
Expand All @@ -28,14 +28,14 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"sphinx.ext.intersphinx",
"sphinx.ext.extlinks",
"sphinx.ext.napoleon",
"sphinx.ext.linkcode",
"myst_nb",
'sphinx.ext.intersphinx',
'sphinx.ext.extlinks',
'sphinx.ext.napoleon',
'sphinx.ext.linkcode',
'myst_nb',
"sphinx_design",
"sphinx_copybutton"
# 'autoapi.extension',
'sphinx_copybutton'
# 'autoapi.extension',
]

# msyt_nb configuration
Expand All @@ -50,7 +50,7 @@
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
templates_path = ['_templates']

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand All @@ -63,18 +63,17 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "alabaster"
html_theme = 'alabaster'

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]

html_static_path = ['_static']

def linkcode_resolve(domain, info):
if domain != "py":
if domain != 'py':
return None
if not info["module"]:
if not info['module']:
return None
filename = info["module"].replace(".", "/")
filename = info['module'].replace('.', '/')
return "https://somesite/sourcerepo/%s.py" % filename
4 changes: 2 additions & 2 deletions symmer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Main init for package."""
from symmer.operators import PauliwordOp, QuantumState
from symmer.process_handler import process
from symmer.projection import ContextualSubspace, QubitSubspaceManager, QubitTapering
from symmer.operators import PauliwordOp, QuantumState
from symmer.projection import QubitTapering, ContextualSubspace, QubitSubspaceManager
2 changes: 1 addition & 1 deletion symmer/approximate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""init for approximate."""
from .tensor_network import MPOOp, coefflist_to_complex, find_groundstate_quimb, get_MPO
from .tensor_network import MPOOp, get_MPO, find_groundstate_quimb, coefflist_to_complex
Loading

0 comments on commit 3554446

Please sign in to comment.