amazon-braket / amazon-braket-algorithm-library

Apache License 2.0
89 stars 33 forks source link

Add random circuit algo #139

Closed ykharkov closed 7 months ago

ykharkov commented 7 months ago

Description of changes: Added random circuit generator, that takes the number of qubits, number of gates and maximum number of operands for each gate as an input.

This PR reimplements the feature proposed in https://github.com/amazon-braket/amazon-braket-algorithm-library/pull/122 by @Morcu, created in a fork repo.

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

Tests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (d240d09) to head (657a96b).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #139 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 26 29 +3 Lines 1028 1053 +25 Branches 181 185 +4 ========================================= + Hits 1028 1053 +25 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.