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

update tests #31

Merged
merged 5 commits into from
Aug 22, 2024
Merged

update tests #31

merged 5 commits into from
Aug 22, 2024

Conversation

AbeCoull
Copy link
Contributor

Issue #, if available:

Description of changes:

Testing done:

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

  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have checked that my tests are not configured for a specific region or account (if appropriate)

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

@AbeCoull AbeCoull requested a review from a team as a code owner August 21, 2024 21:42
@AbeCoull
Copy link
Contributor Author

PYTHON_JULIACALL_OPTIMIZE brought down local runtime from ~2:40 to ~2:00

@kshyatt-aws
Copy link
Contributor

What level? 3?

pytest-rerunfailures
pytest-timeout
pytest-xdist
qiskit==1.1.2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to set this to the current NBI version of qiskit (1.0.2?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am looking to get that bumped up in amazon-braket/amazon-braket-examples#614. I will adjust to use >= accordingly

@AbeCoull
Copy link
Contributor Author

What level? 3?

That had the worst performance. It seemed 0 resulted in the best. I couldn't find docs on the highest vs lowest so I benchmarked across the levels.

@kshyatt-aws
Copy link
Contributor

@kshyatt-aws
Copy link
Contributor

Generally higher is supposed to be more performant

@kshyatt-aws kshyatt-aws merged commit 2e8fb1e into ksh/nobraket Aug 22, 2024
10 checks passed
@kshyatt-aws kshyatt-aws deleted the test_changes branch August 22, 2024 20:24
kshyatt-aws added a commit that referenced this pull request Aug 28, 2024
* change: nobraket branch

* change: Remove threading tests thanks to new pythoncall version

* fix: make tests compatible with xdist

* fix: Use proper BraketSimulator.jl version

* Use a `ProcessPoolExecutor` to talk to Julia (#30)

* fix: Use new BraketSimulator.jl version

* fix: Force a Julia registry update in CI to catch new versions

* update tests (#31)

* update tests

* add a test optimization

* refactor pyproject file to have test dependencies in their own file

* Update requirements-test.txt

* Update requirements-test.txt

---------

Co-authored-by: Coull <[email protected]>

* Fixes for speedier Python-Julia interaction (#32)

* change: Use multiprocessing Pool rather than ProcessPoolExecutor

* fix: No sigterm screaming

* fix: Force close and join at exit

* fix: Faster

* fix: handle julia error in serializable way

* change: Add benchmark workflow to CI

* change: Point to latest unblocking branch

* fix: linting

* fix: Don't turn off juliapkg in tox

* Update src/braket/simulator_v2/julia_workers.py

Co-authored-by: Ryan Shaffer <[email protected]>

* Update src/braket/simulator_v2/julia_workers.py

Co-authored-by: Ryan Shaffer <[email protected]>

* fix: one-line pip in benchmark

* fix: typo

* fix: Use benchmark-json option correctly

* change: Add initial output.json

* fix: Actually include benchmark script

* fix: Don't deploy benchmark results to gh-pages

* fix: restore GH token

* fix: Remove benchmarks for now

* change: Point to new BraketSimulator 0.0.4

---------

Co-authored-by: Ryan Shaffer <[email protected]>

* fix: Don't turn off pyjuliapkg to make sure dpes do install

* fix: Don't return the julia Main module to unlock jupyter

* fix: Return to not using JuliaError type in case Julia isn't loaded

---------

Co-authored-by: Coull <[email protected]>
Co-authored-by: Abe Coull <[email protected]>
Co-authored-by: Ryan Shaffer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants