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

Fail document generation for sphinx warnings #155

Merged
merged 4 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
7 changes: 6 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Changelog
=========

Version 21.0
============

* Updated changelog for version 19.0 to fix sphinx warning `#155 <https://github.com/iqm-finland/iqm-client/pull/155>`_

Version 20.9
============

Expand Down Expand Up @@ -62,7 +67,7 @@ Version 19.0
* Allow mid-circuit measurements and classically controlled PRX gates.
`#136 <https://github.com/iqm-finland/iqm-client/pull/136>`_
* Deprecated native operations names ``phased_rx`` and ``measurement`` removed,
use ``prx`` and ``measure`` instead.
use ``prx`` and ``measure`` instead.
`#136 <https://github.com/iqm-finland/iqm-client/pull/136>`_

Version 18.8
Expand Down
14 changes: 7 additions & 7 deletions src/iqm/iqm_client/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def has_equivalent_operations(self, other: QuantumArchitectureSpecification) ->
another architecture specification.

Returns:
True if the operation and the loci are equivalent.
True if the operation and the loci are equivalent.
"""
return QuantumArchitectureSpecification.compare_operations(self.operations, other.operations)

Expand All @@ -496,7 +496,7 @@ def compare_operations(ops1: dict[str, list[list[str]]], ops2: dict[str, list[li
"""Compares the given operation sets.

Returns:
True if the operation and the loci are equivalent.
True if the operation and the loci are equivalent.
"""
if set(ops1) != set(ops2):
return False
Expand Down Expand Up @@ -557,15 +557,15 @@ def loci(self) -> tuple[Locus, ...]:
The sorting of individual locus components is first done alphabetically based on their
non-numeric part, and then components with the same non-numeric part are sorted numerically.
An example of loci sorted this way would be:
(

('QB1', 'QB2'),
('QB2', 'COMPR1'),
('QB2', 'QB3'),
('QB3', 'COMPR1'),
('QB3', 'COMPR2'),
('QB3', 'QB1'),
('QB10', 'QB2'),
)

"""
loci_set = set(locus for impl in self.implementations.values() for locus in impl.loci)
loci_sorted = sorted(loci_set, key=lambda locus: tuple(map(_component_sort_key, locus)))
Expand Down Expand Up @@ -659,7 +659,7 @@ class DDStrategy:
The current standard DD stategy can be found in :attr:`.STANDARD_DD_STRATEGY`,
but users can use this class to provide their own dynamical decoupling strategies.

See :cite:`Ezzell_2022` for information on DD sequences.
See Ezzell et al., Phys. Rev. Appl. 20, 064027 (2022) for information on DD sequences.
"""

merge_contiguous_waits: bool = True
Expand Down Expand Up @@ -727,7 +727,7 @@ class CircuitCompilationOptions:
"""MOVE gate frame tracking mode for circuit compilation. This options is ignored on devices that do not support
MOVE and for circuits that do not contain MOVE gates."""
active_reset_cycles: Optional[int] = None
"""Number of active ``reset`` operations inserted at the beginning of each circuit for each active qubit.
"""Number of active ``reset`` operations inserted at the beginning of each circuit for each active qubit.
``None`` means active reset is not used but instead reset is done by waiting (relaxation). Integer values smaller
than 1 result in neither active nor reset by wait being used, in which case any reset operations must be explicitly
added in the circuit."""
Expand Down Expand Up @@ -778,7 +778,7 @@ class RunRequest(BaseModel):
move_gate_frame_tracking_mode: MoveGateFrameTrackingMode = Field(MoveGateFrameTrackingMode.FULL)
"""Which method of MOVE gate frame tracking to use for circuit compilation."""
active_reset_cycles: Optional[int] = Field(None)
"""Number of active ``reset`` operations inserted at the beginning of each circuit for each active qubit.
"""Number of active ``reset`` operations inserted at the beginning of each circuit for each active qubit.
``None`` means active reset is not used but instead reset is done by waiting (relaxation). Integer values smaller
than 1 result in neither active nor reset by wait being used, in which case any reset operations must be explicitly
added in the circuit."""
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ setenv =
extras =
docs
commands =
sphinx-build -b {env:BUILD} "{env:DOCSDIR}" "{env:BUILDDIR}/{env:BUILD}"
sphinx-build -b {env:BUILD} "{env:DOCSDIR}" "{env:BUILDDIR}/{env:BUILD}" -W

[testenv:build]
description =
Expand Down
Loading