Skip to content

Commit

Permalink
doc: add dual navigation buttons and cleanup some docstrings (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeCoull authored Nov 21, 2024
1 parent e6775d5 commit 5cb4a31
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,23 @@
]

source_suffix = ".rst"
master_doc = "index"
root_doc = "index"

autoclass_content = "both"
autodoc_member_order = "bysource"
default_role = "py:obj"

html_theme = "sphinx_rtd_theme"
html_theme_options = {
"prev_next_buttons_location": "both",
}
htmlhelp_basename = f"{project}doc"

language = "en"

napoleon_use_rtype = False
napoleon_google_docstring = True
napoleon_numpy_docstring = False

apidoc_module_dir = "../src/braket"
apidoc_output_dir = "_apidoc"
Expand Down
6 changes: 3 additions & 3 deletions src/braket/circuits/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1537,9 +1537,9 @@ def to_unitary(self) -> np.ndarray:
`qubit count` > 10.
Returns:
np.ndarray: A numpy array with shape (2^qubit_count, 2^qubit_count) representing the
circuit as a unitary. For an empty circuit, an empty numpy array is returned
(`array([], dtype=complex)`)
np.ndarray: A numpy array with shape (2 :sup:`qubit_count`, 2 :sup:`qubit_count`)
representing the circuit as a unitary. For an empty circuit, an empty numpy array
is returned (`array([], dtype=complex)`)
Raises:
TypeError: If circuit is not composed only of `Gate` instances,
Expand Down

0 comments on commit 5cb4a31

Please sign in to comment.