diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index 50f58d131..cf5f05bae 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -16,7 +16,7 @@ jobs: check-code-format: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Set up Python uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: diff --git a/.github/workflows/dependent-tests.yml b/.github/workflows/dependent-tests.yml index 8e9e62ec7..f3cac948c 100644 --- a/.github/workflows/dependent-tests.yml +++ b/.github/workflows/dependent-tests.yml @@ -21,7 +21,7 @@ jobs: - amazon-braket-pennylane-plugin-python steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: diff --git a/.github/workflows/pr-title-checker.yml b/.github/workflows/pr-title-checker.yml index 78126bdce..a0f103127 100644 --- a/.github/workflows/pr-title-checker.yml +++ b/.github/workflows/pr-title-checker.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "Check PR Title" - uses: thehanimo/pr-title-checker@v1.4.2 + uses: thehanimo/pr-title-checker@v1.4.3 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} pass_on_octokit_error: false diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 6a17ffc4c..334a2b5b5 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -12,7 +12,7 @@ jobs: name: Build and publish distribution to PyPi runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Set up Python uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: @@ -26,6 +26,6 @@ jobs: - name: Build a binary wheel and a source tarball run: python setup.py sdist bdist_wheel - name: Publish distribution to PyPI - uses: pypa/gh-action-pypi-publish@8a08d616893759ef8e1aa1f2785787c0b97e20d6 # release/v1 + uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # release/v1 with: password: ${{ secrets.pypi_token }} diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 0460424e8..9d06d53c0 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -24,7 +24,7 @@ jobs: python-version: ["3.9", "3.10", "3.11"] steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: @@ -36,7 +36,7 @@ jobs: run: | tox -e unit-tests - name: Upload coverage report to Codecov - uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 + uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 with: token: ${{ secrets.CODECOV_TOKEN }} if: ${{ strategy.job-index }} == 0 diff --git a/.github/workflows/twine-check.yml b/.github/workflows/twine-check.yml index 303dcaf45..8fbb96e09 100644 --- a/.github/workflows/twine-check.yml +++ b/.github/workflows/twine-check.yml @@ -14,7 +14,7 @@ jobs: name: Check long description runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Set up Python uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 34565b899..78fe9797d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## v1.88.2.post0 (2024-11-25) + +### Documentation Changes + + * add dual navigation buttons and cleanup some docstrings + +## v1.88.2 (2024-11-18) + +### Bug Fixes and Other Changes + + * Pin cloudpickle==2.2.1 + ## v1.88.1 (2024-10-21) ### Bug Fixes and Other Changes diff --git a/doc/conf.py b/doc/conf.py index 8a16ca231..b5eae7acc 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -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" diff --git a/setup.py b/setup.py index 18bc591e1..2e1afe1c7 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,9 @@ "backoff", "boltons", "boto3>=1.28.53", - "cloudpickle>=3", + # SageMaker pinned cloudpickle==2.2.1 + # see https://github.com/aws/sagemaker-python-sdk/issues/4871 + "cloudpickle==2.2.1", "nest-asyncio", "networkx", "numpy", diff --git a/src/braket/_sdk/_version.py b/src/braket/_sdk/_version.py index 86ce67991..3a2292d9b 100644 --- a/src/braket/_sdk/_version.py +++ b/src/braket/_sdk/_version.py @@ -15,4 +15,4 @@ Version number (major.minor.patch[-label]) """ -__version__ = "1.88.2.dev0" +__version__ = "1.88.3.dev0" diff --git a/src/braket/circuits/circuit.py b/src/braket/circuits/circuit.py index 02d419cff..e3181a603 100644 --- a/src/braket/circuits/circuit.py +++ b/src/braket/circuits/circuit.py @@ -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,