From 5f55b09c0f6d51d1e9902df541ba8911ab820b9b Mon Sep 17 00:00:00 2001 From: Ryan Shaffer <3620100+rmshaffer@users.noreply.github.com> Date: Wed, 8 May 2024 10:26:11 -0400 Subject: [PATCH 1/7] More repo cleanup, remove Braket SDK paths --- .coveragerc | 5 - .github/ISSUE_TEMPLATE/bug_report.md | 1 + .github/pull_request_template.md | 6 +- .github/scripts/update_dependency.py | 14 +- CHANGELOG.md | 1687 ----------------- CONTRIBUTING.md | 4 +- ...programming_and_dynamical_decoupling.ipynb | 2 +- examples/6_Customize_gate_calibrations.ipynb | 2 +- model.tar.gz | Bin 336 -> 0 bytes pydoclint-baseline.txt | 233 --- 10 files changed, 15 insertions(+), 1939 deletions(-) delete mode 100644 model.tar.gz delete mode 100644 pydoclint-baseline.txt diff --git a/.coveragerc b/.coveragerc index fe9662c0..d5eb0ce3 100644 --- a/.coveragerc +++ b/.coveragerc @@ -4,11 +4,6 @@ branch = True source = src omit = - **/braket/ir/* - **/braket/device_schema/* - **/braket/schema_common/* - **/braket/task_result/* - **/braket/simulator/* */site-packages/braket/* [paths] diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 89f3cdac..128c8c6c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -21,6 +21,7 @@ If applicable, add screenshots or logs to help explain your problem. **System information** A description of your system. Please provide: +- **AutoQASM version**: - **Amazon Braket Python SDK version**: - **Amazon Braket Python Schemas version**: - **Amazon Braket Python Default Simulator version**: diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 87dda8a1..52915612 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -10,9 +10,9 @@ _Put an `x` in the boxes that apply. You can also fill these out after creating #### General -- [ ] I have read the [CONTRIBUTING](https://github.com/amazon-braket/amazon-braket-sdk-python/blob/main/CONTRIBUTING.md) doc -- [ ] I used the commit message format described in [CONTRIBUTING](https://github.com/amazon-braket/amazon-braket-sdk-python/blob/main/CONTRIBUTING.md#commit-your-change) -- [ ] I have updated any necessary documentation, including [READMEs](https://github.com/amazon-braket/amazon-braket-sdk-python/blob/main/README.md) and [API docs](https://github.com/amazon-braket/amazon-braket-sdk-python/blob/main/CONTRIBUTING.md#documentation-guidelines) (if appropriate) +- [ ] I have read the [CONTRIBUTING](https://github.com/amazon-braket/autoqasm/blob/main/CONTRIBUTING.md) doc +- [ ] I used the commit message format described in [CONTRIBUTING](https://github.com/amazon-braket/autoqasm/blob/main/CONTRIBUTING.md#commit-your-change) +- [ ] I have updated any necessary documentation, including [READMEs](https://github.com/amazon-braket/autoqasm/blob/main/README.md) and [API docs](https://github.com/amazon-braket/autoqasm/blob/main/CONTRIBUTING.md#documentation-guidelines) (if appropriate) #### Tests diff --git a/.github/scripts/update_dependency.py b/.github/scripts/update_dependency.py index ec1be302..6d74d885 100644 --- a/.github/scripts/update_dependency.py +++ b/.github/scripts/update_dependency.py @@ -14,21 +14,21 @@ import fileinput from pathlib import Path -# Here we replace the `amazon-braket-sdk` dependency to point to the file system; otherwise +# Here we replace the `autoqasm` dependency to point to the file system; otherwise # pip will install them separately, allowing it to override the version of -# any mutual dependencies with the sdk. By pointing to the file system, pip will be -# forced to reconcile the dependencies in setup.py with the dependencies of the sdk, +# any mutual dependencies with autoqasm. By pointing to the file system, pip will be +# forced to reconcile the dependencies in setup.py with the dependencies of autoqasm, # and raise an error if there are conflicts. While we can't do this for every upstream -# dependency, we can do this for the ones we own to make sure that when the sdk updates +# dependency, we can do this for the ones we own to make sure that when autoqasm updates # its dependencies, these upstream github repos will not be impacted. -package = "amazon-braket-sdk" +package = "autoqasm" path = Path.cwd().parent.resolve() for line in fileinput.input("setup.py", inplace=True): - # Update the amazon-braket-sdk dependency in setup.py to use the local path. This + # Update the autoqasm dependency in setup.py to use the local path. This # would help catch conflicts during the installation process. replaced_line = ( - line if package not in line else f'"{package} @ file://{path}/{package}-python",\n' + line if package not in line else f'"{package} @ file://{path}/{package}",\n' ) print(replaced_line, end="") diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cb8ae8a..825c32f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,1688 +1 @@ # Changelog - -## v1.78.0 (2024-04-18) - -### Features - - * add phase RX gate - -## v1.77.6 (2024-04-17) - -### Bug Fixes and Other Changes - - * if rydberg local is not pulled, pass in None - -## v1.77.5 (2024-04-16) - -### Bug Fixes and Other Changes - - * remove optional discretization fields - -## v1.77.4 (2024-04-16) - -### Bug Fixes and Other Changes - - * discretize method now takes None as an arg - -### Documentation Changes - - * Correct miscellaneous spelling mistakes in docstrings - -## v1.77.3.post0 (2024-04-15) - -### Documentation Changes - - * correct gphase matrix representation - -## v1.77.3 (2024-04-11) - -### Bug Fixes and Other Changes - - * measure target qubits are required - -## v1.77.2 (2024-04-10) - -### Bug Fixes and Other Changes - - * remove shifting field from testing - -## v1.77.1 (2024-04-10) - -### Bug Fixes and Other Changes - - * add measure qubit targets in braket_program_context - -## v1.77.0 (2024-04-10) - -### Features - - * rename shifting field to local detuning - -## v1.76.3 (2024-04-09) - -### Bug Fixes and Other Changes - - * Replace pkg_resources with importlib.metadata - -### Documentation Changes - - * Improve gphase unitary matrix definition in docstring - -## v1.76.2 (2024-04-08) - -### Bug Fixes and Other Changes - - * backwards compatibility for local detuning - -## v1.76.1 (2024-04-08) - -### Bug Fixes and Other Changes - - * Support single-register measurements in `from_ir` - * prevent repeated measurements on a qubit - -## v1.76.0 (2024-04-01) - -### Features - - * add support for OpenQASM measure on a subset of qubits - -### Bug Fixes and Other Changes - - * restore the dependent test back to pennylane - -### Documentation Changes - - * fix GPI2 gate matrix representation - -## v1.75.0 (2024-03-28) - -### Features - - * upgrade to pydantic 2.x - -### Bug Fixes and Other Changes - - * change schemas constraint - -## v1.74.1 (2024-03-27) - -### Bug Fixes and Other Changes - - * temporarily pin the schemas version - -## v1.74.0 (2024-03-21) - -### Features - - * Allow sets of calibrations in batches - -### Bug Fixes and Other Changes - - * batch tasking passing lists to single tasks - -## v1.73.3 (2024-03-18) - -### Bug Fixes and Other Changes - - * store account id if already accessed - -## v1.73.2 (2024-03-13) - -### Bug Fixes and Other Changes - - * increase tol value for our integ tests - -## v1.73.1 (2024-03-11) - -### Bug Fixes and Other Changes - - * allow for braket endpoint to be set within the jobs - -## v1.73.0 (2024-03-07) - -### Features - - * update circuit drawing - -## v1.72.2 (2024-03-04) - -### Bug Fixes and Other Changes - - * validate FreeParameter name - -## v1.72.1 (2024-02-28) - -### Bug Fixes and Other Changes - - * escape slash in metrics prefix - -## v1.72.0 (2024-02-27) - -### Features - - * FreeParameterExpression division - -## v1.71.0 (2024-02-26) - -### Features - - * update log stream prefix for new jobs - -## v1.70.3 (2024-02-21) - -### Bug Fixes and Other Changes - - * remove test with job creation with qpu - * use the caller's account id based on the session - * docs: add note about using env variables for endpoint - -## v1.70.2 (2024-02-14) - -### Bug Fixes and Other Changes - - * Sort input parameters when doing testing equality of two PulseSequences - -## v1.70.1 (2024-02-13) - -### Bug Fixes and Other Changes - - * Do not autodeclare FreeParameter in OQpy - -## v1.70.0 (2024-02-12) - -### Features - - * Support noise models in DM simulators - -## v1.69.1 (2024-02-08) - -### Bug Fixes and Other Changes - - * let price tracker checks skip over devices without execution win… - -## v1.69.0 (2024-02-06) - -### Features - - * update OQpy to version 0.3.5 - -## v1.68.3 (2024-02-05) - -### Bug Fixes and Other Changes - - * Allow identities in PauliString observable - -## v1.68.2 (2024-01-31) - -### Bug Fixes and Other Changes - - * update S3 uri regex for AWS sessions - * update batch circuit to limit repeat calls - -## v1.68.1 (2024-01-29) - -### Bug Fixes and Other Changes - - * add force flag for import testing - -## v1.68.0 (2024-01-25) - -### Features - - * update S3 locations for jobs - -## v1.67.0 (2024-01-23) - -### Features - - * add queue position to the logs for tasks and jobs - -## v1.66.0 (2024-01-11) - -### Features - - * update job name to use metadata - -## v1.65.1 (2023-12-25) - -### Bug Fixes and Other Changes - - * validate out circuits that contain only non-zero-qubit gates - -## v1.65.0 (2023-12-21) - -### Features - - * add U and GPhase gates - -## v1.64.2 (2023-12-19) - -### Bug Fixes and Other Changes - - * treating OpenQASM builtin types as constants - -## v1.64.1 (2023-12-12) - -### Bug Fixes and Other Changes - - * make filter more convenient - -## v1.64.0 (2023-12-07) - -### Features - - * add str, repr and getitem to BasisState - -### Bug Fixes and Other Changes - - * update: adding a test to check for circular imports - -## v1.63.0 (2023-12-05) - -### Features - - * Allow reservation ARN in task and job creation - -### Bug Fixes and Other Changes - - * Add Forte 1 device - -## v1.62.1 (2023-11-17) - -### Bug Fixes and Other Changes - - * Fix broken link to example notebook - * update: default no longer returning RETIRED devices from get_devices - -### Documentation Changes - - * Add matrix expressions to docstrings - -## v1.62.0 (2023-11-09) - -### Features - - * Add get_compiled_circuit convenience method - -## v1.61.0.post0 (2023-11-07) - -### Documentation Changes - - * Improve docstring for make_bound_circuit - -## v1.61.0 (2023-11-06) - -### Features - - * simplify entry point wrapper - -### Bug Fixes and Other Changes - - * fixing some type hints for optional params - -## v1.60.2 (2023-11-01) - -### Bug Fixes and Other Changes - - * drop task count for batch task tests to 3 - -## v1.60.1 (2023-11-01) - -### Bug Fixes and Other Changes - - * set python container version explicitly - * set decorator job working directory inside of function - * s3 config support for decorator jobs - -## v1.60.0 (2023-10-31) - -### Features - - * support dependency list for decorator hybrid jobs - -### Bug Fixes and Other Changes - - * Don't run pulse tests when QPU offline - -### Documentation Changes - - * Fix some nits in the decorator doc string - * update intended audience to include education and research - -## v1.59.2 (2023-10-25) - -### Bug Fixes and Other Changes - - * remove deprecated as_unitary method - -## v1.59.1.post0 (2023-10-24) - -### Documentation Changes - - * add the amazon braket tag in the stack exchange URL - -## v1.59.1 (2023-10-18) - -### Bug Fixes and Other Changes - - * doc fixes - -## v1.59.0 (2023-10-17) - -### Features - - * use region property - -## v1.58.1 (2023-10-16) - -### Bug Fixes and Other Changes - - * use separate aws session for python validation - -## v1.58.0 (2023-10-16) - -### Features - - * job decorator - -### Bug Fixes and Other Changes - - * update integ test for non-py310 - -## v1.57.2 (2023-10-11) - -### Bug Fixes and Other Changes - - * Use builtins for type hints - -## v1.57.1 (2023-10-05) - -### Bug Fixes and Other Changes - - * docs: fix helper docstring - -## v1.57.0 (2023-10-04) - -### Features - - * wrap non-dict results and update results on subsequent calls - * job helper functions - -### Bug Fixes and Other Changes - - * revert integ test changes - -## v1.56.2 (2023-10-03) - -### Bug Fixes and Other Changes - - * Refactor Qubit and QubitSet to a separate module - -## v1.56.1 (2023-09-27) - -### Bug Fixes and Other Changes - - * fixing search device when don't have access to a region. - -## v1.56.0 (2023-09-26) - -### Features - - * add queue visibility information - -## v1.55.1.post0 (2023-09-18) - -### Documentation Changes - - * Remove trailing backquotes - * add code contributors to the readme - * change the sphinx requirement to be greater than 7.0.0 - -## v1.55.1 (2023-09-14) - -### Bug Fixes and Other Changes - - * Revert "update: restricting parameter names to not collide with ones we use for OpenQASM generation. (#675)" - -### Documentation Changes - - * Replace aws org with amazon-braket - -## v1.55.0 (2023-09-09) - -### Features - - * add Aria2 enum - -## v1.54.3.post0 (2023-09-04) - -### Documentation Changes - - * standardize task and job naming to quantum task and hybrid job - -## v1.54.3 (2023-08-30) - -### Bug Fixes and Other Changes - - * Move inline `_flatten` to top of `qubit_set.py` - * build(deps): bump actions/setup-python from 4.6.1 to 4.7.0 - -## v1.54.2 (2023-08-28) - -### Bug Fixes and Other Changes - - * readthedocs integration - * build(deps): bump pypa/gh-action-pypi-publish from 1.8.8 to 1.8.10 - -## v1.54.1 (2023-08-22) - -### Bug Fixes and Other Changes - - * update: restricting parameter names to not collide with ones we use for OpenQASM generation. - -## v1.54.0 (2023-08-16) - -### Features - - * enable gate calibrations on supported devices - -## v1.53.4 (2023-08-15) - -### Bug Fixes and Other Changes - - * docs: add mermaid diagram to describe the CI flow - -## v1.53.3 (2023-08-08) - -### Bug Fixes and Other Changes - - * fix a bug in time series and add trapezoidal time series - -## v1.53.2 (2023-08-07) - -### Bug Fixes and Other Changes - - * don't wrap FreeParameterExpression input as string - -## v1.53.1 (2023-08-03) - -### Bug Fixes and Other Changes - - * Support OpenQASM `Program`s in `from_ir` - -## v1.53.0.post0 (2023-08-02) - -### Documentation Changes - - * fix flake8 issues in tests - -## v1.53.0 (2023-07-31) - -### Features - - * point image uri to latest tag - -### Bug Fixes and Other Changes - - * Update quantum job tests for latest containers - * build(deps): bump pypa/gh-action-pypi-publish from 1.8.7 to 1.8.8 - * move import back to top level in job example - * update doc string for handle_parameter_value - * change all tests in the circuit test path to use with pytest.raises - * pull latest container image by default - -## v1.52.0 (2023-07-25) - -### Features - - * Support symbolic expressions in `from_ir` - -### Bug Fixes and Other Changes - - * local import in job example - * Add parameter support - -## v1.51.0 (2023-07-21) - -### Features - - * add gate calibration data for supported quantum devices - -### Bug Fixes and Other Changes - - * revert adding gate calibration data - * making additional meta available in AHS results - * handle the optional calibration URL returning None - * copy calibrations in to_ir - -## v1.50.0 (2023-07-19) - -### Features - - * Add dot(), power(), and to_circuit() to PauliString - -## v1.49.1.post0 (2023-07-17) - -### Documentation Changes - - * update aws_quantum_job.py to add pattern for create job_name pa… - -## v1.49.1 (2023-07-12) - -### Bug Fixes and Other Changes - - * coerce ArbitraryWaveform.amplitudes type - -## v1.49.0 (2023-07-10) - -### Features - - * OpenQASM to `Circuit` translator - -### Bug Fixes and Other Changes - - * Update Braket dependencies - * update noise operation in program context - * ci: Harden GitHub Actions - -## v1.48.1 (2023-07-07) - -### Bug Fixes and Other Changes - - * use event callbacks to add braket user agents - -## v1.48.0 (2023-07-06) - -### Features - - * draw barrier/delay with qubits - -### Bug Fixes and Other Changes - - * constrain boto version - * pass the expression field when parsing to FreeParameterExpression - * pass gate modifiers to to_unitary - -## v1.47.0 (2023-06-30) - -### Features - - * add optional third angle to MS gate - -### Bug Fixes and Other Changes - - * mixed free parameters and floats - -## v1.46.0 (2023-06-29) - -### Features - - * add string support for FreeParameterExpressions - -## v1.45.0 (2023-06-28) - -### Features - - * enum for device arns - -## v1.44.0 (2023-06-26) - -### Features - - * add support for qubits in pulse delay and barrier - -## v1.43.0 (2023-06-22) - -### Features - - * add support for Python 3.11 - -## v1.42.2 (2023-06-20) - -### Bug Fixes and Other Changes - - * pulse plotting with barriers that have no argument - -## v1.42.1 (2023-06-07) - -### Bug Fixes and Other Changes - - * Add more information to docstring about job name requirements - -## v1.42.0 (2023-06-05) - -### Features - - * support for the run_batch() method on LocalSimulator - -## v1.41.0 (2023-05-30) - -### Features - - * AHS ir valid input for `LocalSimulator` - -### Bug Fixes and Other Changes - - * re-enable & update content as per BCS - -## v1.40.0 (2023-05-25) - -### Features - - * gate modifiers - -## v1.39.1 (2023-05-18) - -### Bug Fixes and Other Changes - - * exclude default none for kms - * test: Rename ionQdevice to Harmony in tests - * making kms key optional - -### Testing and Release Infrastructure - - * twine check action - -## v1.39.0 (2023-05-16) - -### Features - - * Introduce error mitigation - -## v1.38.3 (2023-05-16) - -### Bug Fixes and Other Changes - - * Remove `exclude_none` from device params - -## v1.38.2 (2023-05-16) - -### Bug Fixes and Other Changes - - * docs: add a linter to check proper rst formatting and fix up incorrect docs - -## v1.38.1 (2023-05-11) - -### Bug Fixes and Other Changes - - * hardcode the language used by Sphinx instead of falling back on the default - -## v1.38.0 (2023-05-01) - -### Features - - * add tagging for python 3.10 images - -## v1.37.1 (2023-04-25) - -### Bug Fixes and Other Changes - - * test: fix tox parallel issues with unsorted sets - * Mock task creation against QPUs for tracker - * test: order terminal states for quantum jobs - -### Testing and Release Infrastructure - - * speed up unit testing by automatically parallelizing the CPU workers for test runs - -## v1.37.0 (2023-04-11) - -### Features - - * Introduce AHS-related utils from examples repo - * upgrade container URIs for python 3.9 - -### Bug Fixes and Other Changes - - * correct the python version in the container integ tests to the correct one - * Use device-specific poll interval if provided - -## v1.36.5 (2023-04-03) - -### Bug Fixes and Other Changes - - * support adding a single instruction to moments - * typo in noise_model.py - -## v1.36.4 (2023-03-27) - -### Bug Fixes and Other Changes - - * Export from ahs and timings modules - -## v1.36.3 (2023-03-21) - -### Bug Fixes and Other Changes - - * ignore CompilerDirective when calculating unitary - * add DoubleAngledGate as exported symbol - -## v1.36.2.post0 (2023-03-16) - -### Documentation Changes - - * update README information - -## v1.36.2 (2023-03-14) - -### Bug Fixes and Other Changes - - * update job test for python3.8 - * Look for price offer url in env variable - -## v1.36.1 (2023-03-07) - -### Bug Fixes and Other Changes - - * test: make simulator tracking integ test more robust - -## v1.36.0 (2023-03-03) - -### Deprecations and Removals - - * deprecate python 3.7 - -### Bug Fixes and Other Changes - - * Take advantage of some nice Python 3.8 features - * Include setuptools in requirements - -## v1.35.5 (2023-02-16) - -### Bug Fixes and Other Changes - - * Prevent float-FreeParameter comparison - * build(deps): bump aws-actions/stale-issue-cleanup from 3 to 6 - -### Documentation Changes - - * Remove black badge - -### Testing and Release Infrastructure - - * add dependabot updates for GH actions - * change publish to pypi wf to use release/v1 - -## v1.35.4.post0 (2023-02-15) - -### Documentation Changes - - * Add note to call result to estimate sim tasks - -### Testing and Release Infrastructure - - * update github workflows for node12 retirement - -## v1.35.4 (2023-02-09) - -### Bug Fixes and Other Changes - - * update: adding build for python 3.10 - * copy session with env and profile. - -## v1.35.3 (2023-01-17) - -### Bug Fixes and Other Changes - - * update: updating for Aspen-M3 - -## v1.35.2 (2023-01-04) - -### Bug Fixes and Other Changes - - * specify all for density matrix target - * remove OS signaling from run_batch unit test - * update ascii symbols for angled gate adjoint - * remove ascii_characters dynamic property for sum observables - * abort batch task submission on interrupt - -## v1.35.1 (2022-12-08) - -### Bug Fixes and Other Changes - - * Hamiltonian ascii simplification - -## v1.35.0 (2022-12-07) - -### Features - - * adjoint gradient - -### Bug Fixes and Other Changes - - * docs: Update examples-getting-started.rst - * loosen oqpy requirement - -## v1.34.3.post0 (2022-11-21) - -### Testing and Release Infrastructure - - * Remove Ocean plugin from dependent tests - -## v1.34.3 (2022-11-17) - -### Bug Fixes and Other Changes - - * remove d-wave content - -## v1.34.2 (2022-11-17) - -### Bug Fixes and Other Changes - - * Plot the phase between 0 and 2*pi - -## v1.34.1 (2022-11-15) - -### Bug Fixes and Other Changes - - * update import path in error message - -## v1.34.0 (2022-11-14) - -### Features - - * adding Braket checkstyle checks. - -## v1.33.2 (2022-11-10) - -### Bug Fixes and Other Changes - - * Reference code from the current commit for dependent tests - -## v1.33.1 (2022-11-08) - -### Bug Fixes and Other Changes - - * bump oqpy version - -## v1.33.0.post0 (2022-11-02) - -### Documentation Changes - - * update example notebook links - -## v1.33.0 (2022-11-01) - -### Features - - * Support analog Hamiltonian simulations - -## v1.32.1.post0 (2022-10-25) - -### Documentation Changes - - * update FreeParameter class with example - -## v1.32.1 (2022-10-24) - -### Bug Fixes and Other Changes - - * require boto containing latest API changes - -## v1.32.0 (2022-10-20) - -### Features - - * Add support for pulse control - -## v1.31.1 (2022-10-12) - -### Bug Fixes and Other Changes - - * update inputs on program's copy - -## v1.31.0 (2022-09-26) - -### Features - - * support inputs in the device interface - -### Bug Fixes and Other Changes - - * add missing case for input handling - * don't provide profile name for default profile - -## v1.30.2 (2022-09-22) - -### Bug Fixes and Other Changes - -- copy profile name - -## v1.30.1 (2022-09-20) - -### Bug Fixes and Other Changes - -- update paths within docker image to posix - -## v1.30.0 (2022-09-16) - -### Features - -- IonQ native gates - -## v1.29.4 (2022-09-08) - -### Bug Fixes and Other Changes - -- Simultaneous measurement of identity on all qubits - -## v1.29.3 (2022-09-05) - -### Bug Fixes and Other Changes - -- making local jobs stream output. - -## v1.29.2 (2022-08-25) - -### Bug Fixes and Other Changes - -- Updating documentation and type hints. - -## v1.29.1 (2022-08-18) - -### Bug Fixes and Other Changes - -- updating test cost tracking integ test to use M2. - -## v1.29.0.post0 (2022-08-17) - -### Testing and Release Infrastructure - -- Avoid mutation of fixtures - -## v1.29.0 (2022-08-10) - -### Features - -- Pauli strings - -### Testing and Release Infrastructure - -- Don't run tests on push to feature branches -- Add SF plugin to dependent tests - -## v1.28.1 (2022-08-05) - -### Bug Fixes and Other Changes - -- fix future warning - -## v1.28.0 (2022-08-05) - -### Features - -- OpenQASM default IR and OpenQASM Local Simulator - -### Bug Fixes and Other Changes - -- update simulator version -- handle -0 edge case in result type hash - -## v1.27.1 (2022-07-29) - -### Bug Fixes and Other Changes - -- customer script errors not shown when local jobs run from a notebook. - -## v1.27.0 (2022-07-26) - -### Features - -- provide easy mechanism to update the local container when running local job. - -## v1.26.2 (2022-07-21) - -### Bug Fixes and Other Changes - -- docs: Update README to include guidance for integrations - -## v1.26.1 (2022-07-19) - -### Bug Fixes and Other Changes - -- Lazily parse schemas for devices so getDevice calls do not rely … - -## v1.26.0 (2022-07-18) - -### Features - -- SDK Cost Tracker - -## v1.25.2 (2022-06-22) - -### Bug Fixes and Other Changes - -- Set the range for amazon-braket-schemas to >= 1.10.0 for the latest device schemas needed. - -## v1.25.1.post0 (2022-06-17) - -### Documentation Changes - -- remove s3 references from README - -## v1.25.1 (2022-06-16) - -### Bug Fixes and Other Changes - -- change failureReason string check to let test pass - -## v1.25.0 (2022-06-08) - -### Features - -- Add method for updating the user agent for braket client - -## v1.24.0 (2022-06-02) - -### Features - -- Add support for photonic computations - -## v1.23.2 (2022-05-24) - -### Bug Fixes and Other Changes - -- pin coverage dependency only for test extra - -## v1.23.1 (2022-05-20) - -### Bug Fixes and Other Changes - -- removing validation for disable_qubit_rewiring - -## v1.23.0 (2022-05-19) - -### Features - -- allow job role to be set via env variable -- allow user to set region+endpoint through env variables - -## v1.22.0 (2022-05-18) - -### Features - -- Noise models - -## v1.21.1 (2022-05-17) - -### Bug Fixes and Other Changes - -- broken links for examples - -## v1.21.0 (2022-05-10) - -### Features - -- Gate and Circuit inversion - -## v1.20.0 (2022-05-04) - -### Features - -- support local simulators for jobs - -## v1.19.0 (2022-04-19) - -### Deprecations and Removals - -- use to_unitary rather than as_unitary. - -### Bug Fixes and Other Changes - -- align ECR gate definition with OQC -- add device arn error handling for badly formed ARNs - -## v1.18.2 (2022-04-18) - -### Bug Fixes and Other Changes - -- stringify hyperparameters automatically - -## v1.18.1 (2022-04-14) - -### Bug Fixes and Other Changes - -- add exception handling to local job test -- Run github workflows on feature branches - -## v1.18.0.post0 (2022-04-06) - -### Documentation Changes - -- Specify DEVICE_REGIONS docs. - -## v1.18.0 (2022-03-07) - -### Features - -- Add support for running OpenQASM programs - -## v1.17.0 (2022-03-02) - -### Features - -- Add parameterized circuits - -## v1.16.1 (2022-03-01) - -### Bug Fixes and Other Changes - -- Add the OQC ARN to the integ tests - -## v1.16.0 (2022-02-27) - -### Features - -- LHR region configuration - -### Bug Fixes and Other Changes - -- Oqc release - -## v1.15.0 (2022-02-15) - -### Features - -- Update region switching for regional device arns (#169) - -## v1.14.0.post0 (2022-02-11) - -### Documentation Changes - -- fix documentation on environment variable to match the code. - -## v1.14.0 (2022-02-02) - -### Features - -- adding TwoQubitPauliChannel - -## v1.13.0 (2022-01-27) - -### Features - -- added controlled-sqrt-not gate - -## v1.12.0 (2022-01-25) - -### Features - -- Added is_available property to AwsDevice -- optimize IAM role retrieval - -### Bug Fixes and Other Changes - -- Enable jobs integration tests - -## v1.11.1 (2021-12-09) - -### Bug Fixes and Other Changes - -- remove extraneous reference from local job container setup - -## v1.11.0 (2021-12-02) - -### Features - -- Adding integration tests for DM1 - -## v1.10.0 (2021-11-29) - -### Features - -- Add support for jobs - -### Bug Fixes and Other Changes - -- Skip jobs integration tests - -## v1.9.5.post0 (2021-11-04) - -### Testing and Release Infrastructure - -- Pin docutils<0.18 in doc requirements - -## v1.9.5 (2021-10-05) - -### Bug Fixes and Other Changes - -- Pin Coverage 5.5 - -## v1.9.4 (2021-10-04) - -### Bug Fixes and Other Changes - -- fixed a spelling nit - -## v1.9.3 (2021-10-01) - -### Bug Fixes and Other Changes - -- rigetti typo - -## v1.9.2 (2021-09-30) - -## v1.9.1 (2021-09-24) - -### Bug Fixes and Other Changes - -- Have tasks that are failed output the failure reason from tas… - -## v1.9.0 (2021-09-09) - -### Features - -- Verbatim boxes - -## v1.8.0 (2021-08-23) - -### Features - -- Calculate arbitrary observables when `shots=0` - -### Bug Fixes and Other Changes - -- Remove immutable default args - -## v1.7.5 (2021-08-18) - -### Bug Fixes and Other Changes - -- Add test for local simulator device names - -### Documentation Changes - -- Add documentation for support - -### Testing and Release Infrastructure - -- Update copyright notice - -## v1.7.4 (2021-08-06) - -### Bug Fixes and Other Changes - -- Flatten Tensor Products - -## v1.7.3.post0 (2021-08-05) - -### Documentation Changes - -- Modify README.md to include update instructions - -## v1.7.3 (2021-07-22) - -### Bug Fixes and Other Changes - -- Add json schema validation for dwave device schemas. - -## v1.7.2 (2021-07-14) - -### Bug Fixes and Other Changes - -- add json validation for device schema in unit tests - -## v1.7.1 (2021-07-02) - -### Bug Fixes and Other Changes - -- Result Type syntax in IR -- Update test_circuit.py - -## v1.7.0 (2021-06-25) - -### Features - -- code Circuit.as_unitary() - -### Bug Fixes and Other Changes - -- allow integral number types that aren't type int - -## v1.6.5 (2021-06-23) - -### Bug Fixes and Other Changes - -- Get qubit count without instantiating op -- Require qubit indices to be integers - -## v1.6.4 (2021-06-10) - -### Bug Fixes and Other Changes - -- fallback on empty dict for device level parameters - -## v1.6.3 (2021-06-04) - -### Bug Fixes and Other Changes - -- use device data to create device level parameter data when creating a… - -## v1.6.2 (2021-05-28) - -### Bug Fixes and Other Changes - -- exclude null values from device parameters for annealing tasks - -## v1.6.1 (2021-05-25) - -### Bug Fixes and Other Changes - -- copy the boto3 session using the default botocore session - -## v1.6.0.post0 (2021-05-24) - -### Documentation Changes - -- Add reference to the noise simulation example notebook - -## v1.6.0 (2021-05-24) - -### Features - -- Noise operators - -### Testing and Release Infrastructure - -- Use GitHub source for tox tests - -## v1.5.16 (2021-05-05) - -### Bug Fixes and Other Changes - -- Added /taskArn to id field in AwsQuantumTask **repr** - -### Documentation Changes - -- Fix link, typos, order - -## v1.5.15 (2021-04-08) - -### Bug Fixes and Other Changes - -- stop manually managing waiting treads in quantum task batch requests - -## v1.5.14 (2021-04-07) - -### Bug Fixes and Other Changes - -- roll back dwave change -- Dwave roll back -- use device data to create device level parameter data when creating a quantum annealing task - -## v1.5.13 (2021-03-26) - -### Bug Fixes and Other Changes - -- check for task completion before entering async event loop -- remove unneeded get_quantum_task calls - -## v1.5.12 (2021-03-25) - -### Bug Fixes and Other Changes - -- Update user_agent for AwsSession - -## v1.5.11 (2021-03-22) - -### Bug Fixes and Other Changes - -- Fix broken repository links - -## v1.5.10.post2 (2021-03-19) - -### Testing and Release Infrastructure - -- Run unit tests for dependent packages - -## v1.5.10.post1 (2021-03-16) - -### Documentation Changes - -- Remove STS calls from examples - -## v1.5.10.post0 (2021-03-11) - -### Testing and Release Infrastructure - -- Add Python 3.9 - -## v1.5.10 (2021-03-03) - -### Bug Fixes and Other Changes - -- Don't return NotImplemented for boolean -- Use np.eye for identity -- AngledGate equality checks angles -- Unitary equality checks matrix -- Remove hardcoded device ARNs - -### Documentation Changes - -- Wording changes -- Add note about AWS region in README - -### Testing and Release Infrastructure - -- Use main instead of PyPi for build dependencies -- very minor test changes - -## v1.5.9.post0 (2021-02-22) - -### Documentation Changes - -- remove unneeded calls to sts from the README -- adjust s3_folder naming in README to clarify which bucket to use - -## v1.5.9 (2021-02-06) - -### Bug Fixes and Other Changes - -- Search for unknown QPUs - -## v1.5.8 (2021-01-29) - -### Bug Fixes and Other Changes - -- Remove redundant statement, boost coverage -- convert measurements to indices without allocating a high-dimens… - -### Testing and Release Infrastructure - -- Raise coverage to 100% - -## v1.5.7 (2021-01-27) - -### Bug Fixes and Other Changes - -- More scalable eigenvalue calculation - -## v1.5.6 (2021-01-21) - -### Bug Fixes and Other Changes - -- ensure AngledGate casts its angle argument to float so it can be… - -## v1.5.5 (2021-01-15) - -### Bug Fixes and Other Changes - -- get correct event loop for task results after running a batch over multiple threads - -## v1.5.4 (2021-01-12) - -### Bug Fixes and Other Changes - -- remove window check for polling-- revert to polling at all times -- update result_types to use hashing - -### Testing and Release Infrastructure - -- Enable Codecov - -## v1.5.3 (2020-12-31) - -### Bug Fixes and Other Changes - -- Update range of random qubit in test_qft_iqft_h - -## v1.5.2.post0 (2020-12-30) - -### Testing and Release Infrastructure - -- Add build badge -- Use GitHub Actions for CI - -## v1.5.2 (2020-12-22) - -### Bug Fixes and Other Changes - -- Get regions for QPUs instead of providers -- Do not search for simulators in wrong region - -## v1.5.1 (2020-12-10) - -### Bug Fixes and Other Changes - -- Use current region for simulators in get_devices - -## v1.5.0 (2020-12-04) - -### Features - -- Always accept identity observable factors - -### Documentation Changes - -- backticks for batching tasks -- add punctuation to aws_session.py -- fix backticks, missing periods in quantum task docs -- fix backticks, grammar for aws_device.py - -## v1.4.1 (2020-12-04) - -### Bug Fixes and Other Changes - -- Correct integ test bucket - -## v1.4.0.post0 (2020-12-03) - -### Documentation Changes - -- Point README to developer guide - -## v1.4.0 (2020-11-26) - -### Features - -- Enable retries when retrieving results from AwsQuantumTaskBatch. - -## v1.3.1 (2020-11-25) - -## v1.3.0 (2020-11-23) - -### Features - -- Enable explicit qubit allocation -- Add support for batch execution - -### Bug Fixes and Other Changes - -- Correctly cache status - -## v1.2.0 (2020-11-02) - -### Features - -- support tags parameter for create method in AwsQuantumTask - -## v1.1.4.post0 (2020-10-30) - -### Testing and Release Infrastructure - -- update codeowners - -## v1.1.4 (2020-10-29) - -### Bug Fixes and Other Changes - -- Enable simultaneous measurement of observables with shared factors -- Add optimization to only poll during execution window - -## v1.1.3 (2020-10-20) - -### Bug Fixes and Other Changes - -- add observable targets not in instructions to circuit qubit count and qubits - -## v1.1.2.post1 (2020-10-15) - -### Documentation Changes - -- add sample notebooks link - -## v1.1.2.post0 (2020-10-05) - -### Testing and Release Infrastructure - -- change check for s3 bucket exists -- change bucket creation setup for integ tests - -## v1.1.2 (2020-10-02) - -### Bug Fixes and Other Changes - -- Add error for target qubit set size not equal to operator qubit size in instruction -- Add error message for running a circuit without instructions - -### Documentation Changes - -- Update docstring for measurement_counts - -## v1.1.1.post2 (2020-09-29) - -### Documentation Changes - -- Add D-Wave Advantage_system1 arn - -## v1.1.1.post1 (2020-09-10) - -### Testing and Release Infrastructure - -- fix black formatting - -## v1.1.1.post0 (2020-09-09) - -### Testing and Release Infrastructure - -- Add CHANGELOG.md - -## v1.1.1 (2020-09-09) - -### Bug Fixes - -- Add handling for solution_counts=[] for annealing result - -## v1.1.0 (2020-09-08) - -### Features - -- Add get_devices to search devices based on criteria - -### Bug Fixes - -- Call async_result() before calling result() -- Convert amplitude result to a complex number - -## v1.0.0.post1 (2020-08-14) - -### Documentation - -- add readthedocs link to README - -## v1.0.0 (2020-08-13) - -This is the public release of the Amazon Braket Python SDK! - -The Amazon Braket Python SDK is an open source library that provides a framework that you can use to interact with quantum computing devices through Amazon Braket. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3788087a..284290e9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -186,7 +186,7 @@ If a parameter of a function has a default value, please note what the default i If that default value is `None`, it can also be helpful to explain what happens when the parameter is `None`. If `**kwargs` is part of the function signature, link to the parent class(es) or method(s) so that the reader knows where to find the available parameters. -For an example file with docstrings, see [the `circuit` module](https://github.com/amazon-braket/amazon-braket-sdk-python/blob/main/src/braket/circuits/circuit.py). +For an example file with docstrings, see [the `gates` module](https://github.com/amazon-braket/autoqasm/blob/main/src/autoqasm/instructions/gates.py). ### Build and Test Documentation @@ -219,6 +219,6 @@ If you discover a potential security issue in this project we ask that you notif ## Licensing -See the [LICENSE](https://github.com/amazon-braket/amazon-braket-sdk-python/blob/main/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution. +See the [LICENSE](https://github.com/amazon-braket/autoqasm/blob/main/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution. We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes. diff --git a/examples/5_Pulse_programming_and_dynamical_decoupling.ipynb b/examples/5_Pulse_programming_and_dynamical_decoupling.ipynb index f54203e9..3dbf1cf6 100644 --- a/examples/5_Pulse_programming_and_dynamical_decoupling.ipynb +++ b/examples/5_Pulse_programming_and_dynamical_decoupling.ipynb @@ -61,7 +61,7 @@ "id": "590f013f", "metadata": {}, "source": [ - "Unlike gate operations, pulse operations often target Frame objects instead of qubits. Basic pulse operations include setting the frequency and phase of a frame, playing a waveform, applying a delay, and capturing the output of a frame. The pulse operations are defined in the [pulse module](https://github.com/amazon-braket/amazon-braket-sdk-python/blob/feature/autoqasm/src/braket/experimental/autoqasm/pulse/pulse.py) of AutoQASM. You can read this [documentation](https://docs.aws.amazon.com/braket/latest/developerguide/braket-pulse.html) to learn more about frames and waveforms. The examples below are provided under the assumption that the reader is familiar with the analog aspect of a quantum hardware." + "Unlike gate operations, pulse operations often target Frame objects instead of qubits. Basic pulse operations include setting the frequency and phase of a frame, playing a waveform, applying a delay, and capturing the output of a frame. The pulse operations are defined in the [pulse module](https://github.com/amazon-braket/autoqasm/blob/main/src/autoqasm/pulse/pulse.py) of AutoQASM. You can read this [documentation](https://docs.aws.amazon.com/braket/latest/developerguide/braket-pulse.html) to learn more about frames and waveforms. The examples below are provided under the assumption that the reader is familiar with the analog aspect of a quantum hardware." ] }, { diff --git a/examples/6_Customize_gate_calibrations.ipynb b/examples/6_Customize_gate_calibrations.ipynb index 834ca56c..80a7608d 100644 --- a/examples/6_Customize_gate_calibrations.ipynb +++ b/examples/6_Customize_gate_calibrations.ipynb @@ -155,7 +155,7 @@ "2. Decide the qubits and angles you want to define the calibration.\n", "3. Compose a pulse program that defines the calibration.\n", "\n", - "As an example, let's define the gate calibration of `rx` on qubit `$1` and at angle `pi/2`. We first inspect the definition of the `rx` gate. You can find the definition of gate instructions in the [gate module](https://github.com/amazon-braket/amazon-braket-sdk-python/blob/feature/autoqasm/src/braket/experimental/autoqasm/instructions/gates.py) of AutoQASM. You can also use the Python built-in `help` function to retrieve the definition. A gate calibration for the `rx` gate must fully specify the inputs of the gate, `target` and `angle`." + "As an example, let's define the gate calibration of `rx` on qubit `$1` and at angle `pi/2`. We first inspect the definition of the `rx` gate. You can find the definition of gate instructions in the [gate module](https://github.com/amazon-braket/autoqasm/blob/main/src/autoqasm/instructions/gates.py) of AutoQASM. You can also use the Python built-in `help` function to retrieve the definition. A gate calibration for the `rx` gate must fully specify the inputs of the gate, `target` and `angle`." ] }, { diff --git a/model.tar.gz b/model.tar.gz deleted file mode 100644 index 93bf6a4a03f7d08314601e2907a704651eb0b07a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 336 zcmV-W0k8faiwFP!000001MHQ}OT#c2#(Va!2svx^rcE0sc<_@AJcxpL8(AB)b4^B) z%4F<+H{HjjuuWKXsQq1x%3_`*Q35O_NgDPfvx=n;VBX>FXTDp6uL>oc|;iH ztQ*0R_tGt1vB_fzy6azFJY4nqPd6kr(*HrLP1T3Kf&b071ir@3{KvGOe~7{W?VZW5 zu+G2H+HI@b<^R(B&+yQQH|ZYJS6PVVLx9iF3@cGcKUmphq=$Bp2`9+JzZAK3G8=ep zA>m_$-z!zCY6Zn}FI2{Lo>s{h=3~(^)ykK>$jr~2DW$KH$_tfy0wi27yVa%;u4*+I ii(EN5b$EX0i)v|UY58M(0ssL2{{sNvw;Ch>3;+NyA)$Q$ diff --git a/pydoclint-baseline.txt b/pydoclint-baseline.txt deleted file mode 100644 index 816c4265..00000000 --- a/pydoclint-baseline.txt +++ /dev/null @@ -1,233 +0,0 @@ -src/braket/aws/aws_device.py - DOC101: Method `AwsDevice.run_batch`: Docstring contains fewer arguments than in function signature. - DOC103: Method `AwsDevice.run_batch`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**aws_quantum_task_kwargs: , *aws_quantum_task_args: ]. --------------------- -src/braket/aws/aws_quantum_job.py - DOC502: Method `AwsQuantumJob.create` has a "Raises" section in the docstring, but there are not "raise" statements in the body - DOC101: Method `AwsQuantumJob._is_valid_aws_session_region_for_job_arn`: Docstring contains fewer arguments than in function signature. - DOC109: Method `AwsQuantumJob._is_valid_aws_session_region_for_job_arn`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `AwsQuantumJob._is_valid_aws_session_region_for_job_arn`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [aws_session: AwsSession, job_arn: str]. - DOC502: Method `AwsQuantumJob.logs` has a "Raises" section in the docstring, but there are not "raise" statements in the body - DOC502: Method `AwsQuantumJob.cancel` has a "Raises" section in the docstring, but there are not "raise" statements in the body --------------------- -src/braket/aws/aws_quantum_task.py - DOC101: Method `AwsQuantumTask.create`: Docstring contains fewer arguments than in function signature. - DOC103: Method `AwsQuantumTask.create`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: , *args: ]. - DOC501: Method `AwsQuantumTask.create` has "raise" statements, but the docstring does not have a "Raises" section - DOC101: Method `AwsQuantumTask._aws_session_for_task_arn`: Docstring contains fewer arguments than in function signature. - DOC109: Method `AwsQuantumTask._aws_session_for_task_arn`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `AwsQuantumTask._aws_session_for_task_arn`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [task_arn: str]. - DOC501: Function `_create_annealing_device_params` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/aws/aws_quantum_task_batch.py - DOC501: Method `AwsQuantumTaskBatch.results` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `AwsQuantumTaskBatch.retry_unsuccessful_tasks` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/aws/aws_session.py - DOC106: Method `AwsSession.create_quantum_task`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `AwsSession.create_quantum_task`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC106: Method `AwsSession.create_job`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `AwsSession.create_job`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC001: Function/method `parse_s3_uri`: Potential formatting errors in docstring. Error message: Expected a colon in 'a valid S3 URI.'. - DOC101: Method `AwsSession.parse_s3_uri`: Docstring contains fewer arguments than in function signature. - DOC109: Method `AwsSession.parse_s3_uri`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `AwsSession.parse_s3_uri`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [s3_uri: str]. - DOC201: Method `AwsSession.parse_s3_uri` does not have a return section in docstring - DOC203: Method `AwsSession.parse_s3_uri` return type(s) in docstring not consistent with the return annotation. Return annotation has 1 type(s); docstring return section has 0 type(s). - DOC501: Method `AwsSession.parse_s3_uri` has "raise" statements, but the docstring does not have a "Raises" section - DOC001: Function/method `construct_s3_uri`: Potential formatting errors in docstring. Error message: Expected a colon in 'valid to generate an S3 URI'. - DOC101: Method `AwsSession.construct_s3_uri`: Docstring contains fewer arguments than in function signature. - DOC109: Method `AwsSession.construct_s3_uri`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `AwsSession.construct_s3_uri`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [*dirs: str, bucket: str]. - DOC201: Method `AwsSession.construct_s3_uri` does not have a return section in docstring - DOC203: Method `AwsSession.construct_s3_uri` return type(s) in docstring not consistent with the return annotation. Return annotation has 1 type(s); docstring return section has 0 type(s). - DOC501: Method `AwsSession.construct_s3_uri` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `AwsSession.get_full_image_tag` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/circuits/angled_gate.py - DOC101: Method `AngledGate.bind_values`: Docstring contains fewer arguments than in function signature. - DOC106: Method `AngledGate.bind_values`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `AngledGate.bind_values`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `AngledGate.bind_values`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. - DOC501: Method `DoubleAngledGate.adjoint` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `TripleAngledGate.adjoint` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/circuits/braket_program_context.py - DOC101: Method `BraketProgramContext.add_gate_instruction`: Docstring contains fewer arguments than in function signature. - DOC103: Method `BraketProgramContext.add_gate_instruction`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [*params: ]. --------------------- -src/braket/circuits/circuit.py - DOC101: Method `Circuit.__init__`: Docstring contains fewer arguments than in function signature. - DOC103: Method `Circuit.__init__`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: , *args: ]. - DOC502: Method `Circuit.__init__` has a "Raises" section in the docstring, but there are not "raise" statements in the body - DOC105: Method `Circuit.apply_gate_noise`: Argument names match, but type hints do not match - DOC001: Function/method `_validate_parameters`: Potential formatting errors in docstring. Error message: No specification for "Raises": "" - DOC101: Method `Circuit._validate_parameters`: Docstring contains fewer arguments than in function signature. - DOC109: Method `Circuit._validate_parameters`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `Circuit._validate_parameters`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [parameter_values: dict[str, Number]]. - DOC501: Method `Circuit._validate_parameters` has "raise" statements, but the docstring does not have a "Raises" section - DOC101: Method `Circuit.add`: Docstring contains fewer arguments than in function signature. - DOC103: Method `Circuit.add`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: , *args: ]. - DOC502: Method `Circuit.to_unitary` has a "Raises" section in the docstring, but there are not "raise" statements in the body --------------------- -src/braket/circuits/compiler_directive.py - DOC501: Method `CompilerDirective.__init__` has "raise" statements, but the docstring does not have a "Raises" section - DOC101: Method `CompilerDirective.to_ir`: Docstring contains fewer arguments than in function signature. - DOC103: Method `CompilerDirective.to_ir`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. - DOC501: Method `CompilerDirective.counterpart` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/circuits/gate.py - DOC502: Method `Gate.__init__` has a "Raises" section in the docstring, but there are not "raise" statements in the body - DOC501: Method `Gate.adjoint` has "raise" statements, but the docstring does not have a "Raises" section - DOC001: Function/method `to_ir`: Potential formatting errors in docstring. Error message: Expected a colon in "properties don't correspond to the `ir_type`.". - DOC101: Method `Gate.to_ir`: Docstring contains fewer arguments than in function signature. - DOC109: Method `Gate.to_ir`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `Gate.to_ir`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [control: Optional[QubitSet], control_state: Optional[BasisStateInput], ir_type: IRType, power: float, serialization_properties: Optional[SerializationProperties], target: QubitSet]. - DOC201: Method `Gate.to_ir` does not have a return section in docstring - DOC203: Method `Gate.to_ir` return type(s) in docstring not consistent with the return annotation. Return annotation has 1 type(s); docstring return section has 0 type(s). - DOC501: Method `Gate.to_ir` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `Gate._to_jaqcd` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/circuits/gates.py - DOC105: Method `Unitary.__init__`: Argument names match, but type hints do not match - DOC105: Method `Unitary.unitary`: Argument names match, but type hints do not match - DOC501: Method `PulseGate.__init__` has "raise" statements, but the docstring does not have a "Raises" section - DOC101: Method `PulseGate.bind_values`: Docstring contains fewer arguments than in function signature. - DOC106: Method `PulseGate.bind_values`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `PulseGate.bind_values`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `PulseGate.bind_values`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. --------------------- -src/braket/circuits/noise.py - DOC502: Method `Noise.__init__` has a "Raises" section in the docstring, but there are not "raise" statements in the body - DOC001: Function/method `to_ir`: Potential formatting errors in docstring. Error message: Expected a colon in "properties don't correspond to the `ir_type`.". - DOC101: Method `Noise.to_ir`: Docstring contains fewer arguments than in function signature. - DOC109: Method `Noise.to_ir`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `Noise.to_ir`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [ir_type: IRType, serialization_properties: SerializationProperties | None, target: QubitSet]. - DOC201: Method `Noise.to_ir` does not have a return section in docstring - DOC203: Method `Noise.to_ir` return type(s) in docstring not consistent with the return annotation. Return annotation has 1 type(s); docstring return section has 0 type(s). - DOC501: Method `Noise.to_ir` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `Noise._to_jaqcd` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `Noise._to_openqasm` has "raise" statements, but the docstring does not have a "Raises" section - DOC101: Method `Noise.to_matrix`: Docstring contains fewer arguments than in function signature. - DOC106: Method `Noise.to_matrix`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `Noise.to_matrix`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `Noise.to_matrix`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: , *args: ]. - DOC203: Method `Noise.to_matrix` return type(s) in docstring not consistent with the return annotation. Return annotation types: ['Iterable[np.ndarray]']; docstring return section types: ['Iterable[ndarray]'] - DOC501: Method `Noise.to_matrix` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `Noise.from_dict` has "raise" statements, but the docstring does not have a "Raises" section - DOC502: Method `SingleProbabilisticNoise.__init__` has a "Raises" section in the docstring, but there are not "raise" statements in the body - DOC101: Method `SingleProbabilisticNoise.bind_values`: Docstring contains fewer arguments than in function signature. - DOC106: Method `SingleProbabilisticNoise.bind_values`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `SingleProbabilisticNoise.bind_values`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `SingleProbabilisticNoise.bind_values`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. - DOC502: Method `SingleProbabilisticNoise_34.__init__` has a "Raises" section in the docstring, but there are not "raise" statements in the body - DOC502: Method `SingleProbabilisticNoise_1516.__init__` has a "Raises" section in the docstring, but there are not "raise" statements in the body - DOC101: Method `MultiQubitPauliNoise.bind_values`: Docstring contains fewer arguments than in function signature. - DOC106: Method `MultiQubitPauliNoise.bind_values`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `MultiQubitPauliNoise.bind_values`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `MultiQubitPauliNoise.bind_values`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. - DOC203: Method `PauliNoise.probX` return type(s) in docstring not consistent with the return annotation. Return annotation types: ['Union[FreeParameterExpression, float]']; docstring return section types: [''] - DOC203: Method `PauliNoise.probY` return type(s) in docstring not consistent with the return annotation. Return annotation types: ['Union[FreeParameterExpression, float]']; docstring return section types: [''] - DOC203: Method `PauliNoise.probZ` return type(s) in docstring not consistent with the return annotation. Return annotation types: ['Union[FreeParameterExpression, float]']; docstring return section types: [''] - DOC101: Method `PauliNoise.bind_values`: Docstring contains fewer arguments than in function signature. - DOC106: Method `PauliNoise.bind_values`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `PauliNoise.bind_values`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `PauliNoise.bind_values`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. - DOC502: Method `DampingNoise.__init__` has a "Raises" section in the docstring, but there are not "raise" statements in the body - DOC101: Method `DampingNoise.bind_values`: Docstring contains fewer arguments than in function signature. - DOC106: Method `DampingNoise.bind_values`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `DampingNoise.bind_values`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `DampingNoise.bind_values`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. - DOC502: Method `GeneralizedAmplitudeDampingNoise.__init__` has a "Raises" section in the docstring, but there are not "raise" statements in the body - DOC501: Function `_validate_param_value` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/circuits/noise_helpers.py - DOC501: Function `check_noise_target_gates` has "raise" statements, but the docstring does not have a "Raises" section - DOC105: Function `check_noise_target_unitary`: Argument names match, but type hints do not match - DOC501: Function `check_noise_target_unitary` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Function `check_noise_target_qubits` has "raise" statements, but the docstring does not have a "Raises" section - DOC105: Function `apply_noise_to_gates`: Argument names match, but type hints do not match - DOC502: Function `apply_noise_to_gates` has a "Raises" section in the docstring, but there are not "raise" statements in the body --------------------- -src/braket/circuits/noise_model/criteria.py - DOC501: Method `Criteria.applicable_key_types` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `Criteria.get_keys` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `Criteria.to_dict` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `Criteria.from_dict` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/circuits/noise_model/criteria_input_parsing.py - DOC501: Function `parse_operator_input` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Function `parse_qubit_input` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/circuits/noise_model/initialization_criteria.py - DOC501: Method `InitializationCriteria.qubit_intersection` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/circuits/noise_model/result_type_criteria.py - DOC501: Method `ResultTypeCriteria.result_type_matches` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/circuits/noises.py - DOC101: Method `PauliChannel.bind_values`: Docstring contains fewer arguments than in function signature. - DOC106: Method `PauliChannel.bind_values`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `PauliChannel.bind_values`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `PauliChannel.bind_values`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. - DOC101: Method `Depolarizing.bind_values`: Docstring contains fewer arguments than in function signature. - DOC106: Method `Depolarizing.bind_values`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `Depolarizing.bind_values`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `Depolarizing.bind_values`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. - DOC101: Method `TwoQubitDepolarizing.bind_values`: Docstring contains fewer arguments than in function signature. - DOC106: Method `TwoQubitDepolarizing.bind_values`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `TwoQubitDepolarizing.bind_values`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `TwoQubitDepolarizing.bind_values`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. - DOC101: Method `TwoQubitDephasing.bind_values`: Docstring contains fewer arguments than in function signature. - DOC106: Method `TwoQubitDephasing.bind_values`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `TwoQubitDephasing.bind_values`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `TwoQubitDephasing.bind_values`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. - DOC101: Method `TwoQubitPauliChannel.bind_values`: Docstring contains fewer arguments than in function signature. - DOC106: Method `TwoQubitPauliChannel.bind_values`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `TwoQubitPauliChannel.bind_values`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `TwoQubitPauliChannel.bind_values`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. - DOC101: Method `AmplitudeDamping.bind_values`: Docstring contains fewer arguments than in function signature. - DOC106: Method `AmplitudeDamping.bind_values`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `AmplitudeDamping.bind_values`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `AmplitudeDamping.bind_values`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. - DOC101: Method `GeneralizedAmplitudeDamping.bind_values`: Docstring contains fewer arguments than in function signature. - DOC106: Method `GeneralizedAmplitudeDamping.bind_values`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `GeneralizedAmplitudeDamping.bind_values`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `GeneralizedAmplitudeDamping.bind_values`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. - DOC101: Method `PhaseDamping.bind_values`: Docstring contains fewer arguments than in function signature. - DOC106: Method `PhaseDamping.bind_values`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `PhaseDamping.bind_values`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `PhaseDamping.bind_values`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. - DOC501: Method `Kraus.kraus` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `Kraus.to_dict` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `Kraus.from_dict` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/circuits/observable.py - DOC501: Method `Observable._to_openqasm` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `Observable.basis_rotation_gates` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `Observable.eigenvalues` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `Observable.eigenvalue` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/circuits/observables.py - DOC501: Method `TensorProduct.__init__` has "raise" statements, but the docstring does not have a "Raises" section - DOC501: Method `TensorProduct.eigenvalue` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/circuits/operator.py - DOC101: Method `Operator.to_ir`: Docstring contains fewer arguments than in function signature. - DOC106: Method `Operator.to_ir`: The option `--arg-type-hints-in-signature` is `True` but there are no argument type hints in the signature - DOC109: Method `Operator.to_ir`: The option `--arg-type-hints-in-docstring` is `True` but there are no type hints in the docstring arg list - DOC103: Method `Operator.to_ir`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: , *args: ]. --------------------- -src/braket/circuits/result_type.py - DOC101: Method `ResultType.to_ir`: Docstring contains fewer arguments than in function signature. - DOC103: Method `ResultType.to_ir`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: ]. --------------------- -src/braket/devices/local_simulator.py - DOC101: Method `LocalSimulator.run_batch`: Docstring contains fewer arguments than in function signature. - DOC103: Method `LocalSimulator.run_batch`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [**kwargs: , *args: ]. - DOC501: Method `LocalSimulator.run_batch` has "raise" statements, but the docstring does not have a "Raises" section --------------------- -src/braket/tasks/gate_model_quantum_task_result.py - DOC502: Method `GateModelQuantumTaskResult.from_object` has a "Raises" section in the docstring, but there are not "raise" statements in the body - DOC502: Method `GateModelQuantumTaskResult.from_string` has a "Raises" section in the docstring, but there are not "raise" statements in the body --------------------- From 42538ba6bf79038e7c19127c698d626247f75887 Mon Sep 17 00:00:00 2001 From: Ryan Shaffer <3620100+rmshaffer@users.noreply.github.com> Date: Wed, 8 May 2024 10:32:57 -0400 Subject: [PATCH 2/7] Add badges to readme --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 2a489495..04843518 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # AutoQASM +[![Latest Version](https://img.shields.io/pypi/v/autoqasm.svg)](https://pypi.python.org/pypi/autoqasm) +[![Supported Python Versions](https://img.shields.io/pypi/pyversions/autoqasm.svg)](https://pypi.python.org/pypi/autoqasm) +[![Build status](https://github.com/amazon-braket/autoqasm/actions/workflows/python-package.yml/badge.svg?branch=main)](https://github.com/amazon-braket/autoqasm/actions/workflows/python-package.yml) +[![codecov](https://codecov.io/gh/amazon-braket/autoqasm/graph/badge.svg?token=oO44oCLtPu)](https://codecov.io/gh/amazon-braket/autoqasm) +[![Documentation Status](https://readthedocs.org/projects/autoqasm/badge/?version=latest)](https://autoqasm.readthedocs.io/en/latest/?badge=latest) + **AutoQASM is not an officially supported AWS product.** This experimental module offers a new quantum-imperative programming experience embedded in Python From 9d56f877ea5d4a19102bc3d3377c4ed8ea859d6c Mon Sep 17 00:00:00 2001 From: Ryan Shaffer <3620100+rmshaffer@users.noreply.github.com> Date: Wed, 8 May 2024 10:34:32 -0400 Subject: [PATCH 3/7] Lint --- .github/scripts/update_dependency.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/scripts/update_dependency.py b/.github/scripts/update_dependency.py index 6d74d885..63f3e212 100644 --- a/.github/scripts/update_dependency.py +++ b/.github/scripts/update_dependency.py @@ -28,7 +28,5 @@ for line in fileinput.input("setup.py", inplace=True): # Update the autoqasm dependency in setup.py to use the local path. This # would help catch conflicts during the installation process. - replaced_line = ( - line if package not in line else f'"{package} @ file://{path}/{package}",\n' - ) + replaced_line = line if package not in line else f'"{package} @ file://{path}/{package}",\n' print(replaced_line, end="") From f2681a1940ebd7c804469d09c3470271ed34c559 Mon Sep 17 00:00:00 2001 From: Ryan Shaffer <3620100+rmshaffer@users.noreply.github.com> Date: Wed, 8 May 2024 11:51:38 -0400 Subject: [PATCH 4/7] Comment formatting --- .github/scripts/update_dependency.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/scripts/update_dependency.py b/.github/scripts/update_dependency.py index 63f3e212..a3493f1e 100644 --- a/.github/scripts/update_dependency.py +++ b/.github/scripts/update_dependency.py @@ -16,11 +16,11 @@ # Here we replace the `autoqasm` dependency to point to the file system; otherwise # pip will install them separately, allowing it to override the version of -# any mutual dependencies with autoqasm. By pointing to the file system, pip will be -# forced to reconcile the dependencies in setup.py with the dependencies of autoqasm, +# any mutual dependencies with AutoQASM. By pointing to the file system, pip will be +# forced to reconcile the dependencies in setup.py with the dependencies of AutoQASM, # and raise an error if there are conflicts. While we can't do this for every upstream -# dependency, we can do this for the ones we own to make sure that when autoqasm updates -# its dependencies, these upstream github repos will not be impacted. +# dependency, we can do this for the ones we own to make sure that when AutoQASM updates +# its dependencies, these upstream GitHub repos will not be impacted. package = "autoqasm" path = Path.cwd().parent.resolve() From a483c19608855457c3faa3fc30acb66570789071 Mon Sep 17 00:00:00 2001 From: Ryan Shaffer <3620100+rmshaffer@users.noreply.github.com> Date: Wed, 8 May 2024 11:58:00 -0400 Subject: [PATCH 5/7] Update docstring example link --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 284290e9..d7aa3808 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -186,7 +186,7 @@ If a parameter of a function has a default value, please note what the default i If that default value is `None`, it can also be helpful to explain what happens when the parameter is `None`. If `**kwargs` is part of the function signature, link to the parent class(es) or method(s) so that the reader knows where to find the available parameters. -For an example file with docstrings, see [the `gates` module](https://github.com/amazon-braket/autoqasm/blob/main/src/autoqasm/instructions/gates.py). +For an example file with docstrings, see [the `measurements` module](https://github.com/amazon-braket/autoqasm/blob/main/src/autoqasm/instructions/measurements.py). ### Build and Test Documentation From 966964cff91d968c4cac97537b6199f962083cc5 Mon Sep 17 00:00:00 2001 From: Ryan Shaffer <3620100+rmshaffer@users.noreply.github.com> Date: Wed, 8 May 2024 12:16:26 -0400 Subject: [PATCH 6/7] Fix doc formatting --- doc/index.rst | 12 ++++++------ src/autoqasm/__init__.py | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/doc/index.rst b/doc/index.rst index fb753ff8..c9982d1e 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -14,17 +14,17 @@ is hosted on GitHub at https://github.com/amazon-braket/autoqasm. The project includes the source code, installation instructions, and other information. -*************** +***************************** Getting Started with AutoQASM -*************** +***************************** For details on how to get started with AutoQASM, see the project readme at https://github.com/amazon-braket/autoqasm/blob/main/README.md. -*************** +******************* AutoQASM Decorators -*************** +******************* For details on usage of AutoQASM decorators such as `@aq.main`, see the decorators documentation at https://github.com/amazon-braket/autoqasm/blob/main/doc/decorators.md @@ -38,9 +38,9 @@ There are several example notebooks available in the AutoQASM repo at https://github.com/amazon-braket/autoqasm/tree/main/examples. -****************************** +************************** AutoQASM API Documentation -****************************** +************************** .. toctree:: :maxdepth: 2 diff --git a/src/autoqasm/__init__.py b/src/autoqasm/__init__.py index bc370aa1..20ed5c07 100644 --- a/src/autoqasm/__init__.py +++ b/src/autoqasm/__init__.py @@ -16,6 +16,8 @@ The basic usage of AutoQASM is as follows: +.. code-block:: python + import autoqasm as aq from autoqasm.instructions import h, cnot, measure @@ -31,6 +33,8 @@ def my_program(): The Python code above outputs the following OpenQASM program: +.. code-block:: + OPENQASM 3.0; qubit[2] __qubits__; h __qubits__[0]; From 53823263528dc411245382776e2f3eb04a49f744 Mon Sep 17 00:00:00 2001 From: Ryan Shaffer <3620100+rmshaffer@users.noreply.github.com> Date: Wed, 8 May 2024 12:26:46 -0400 Subject: [PATCH 7/7] Update pypi publish action permission --- .github/workflows/publish-to-pypi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index c1de3767..beed16ed 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -11,6 +11,8 @@ jobs: build-and-publish: name: Build and publish distribution to PyPi runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 - name: Set up Python @@ -27,5 +29,3 @@ jobs: run: python setup.py sdist bdist_wheel - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # release/v1 - with: - password: ${{ secrets.pypi_token }}