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

setting up the repository #1

Merged
merged 86 commits into from
May 6, 2024
Merged

setting up the repository #1

merged 86 commits into from
May 6, 2024

Conversation

krneta
Copy link
Contributor

@krneta krneta commented Apr 24, 2024

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@speller26
Copy link
Member

Looks like GitHub Actions is having trouble running unit tests

@krneta
Copy link
Contributor Author

krneta commented Apr 24, 2024

Looks like GitHub Actions is having trouble running unit tests

Yes, this will fail until we setup the julia sim (and the registry) so it can be pulled in as a dependency of this repo.

@kshyatt-aws
Copy link
Member

Can we re-trigger CI here now that the registry is set up?

@krneta
Copy link
Contributor Author

krneta commented Apr 26, 2024

Can we re-trigger CI here now that the registry is set up?

I think I need to add a script to reference the new registry, no?

Comment on lines +7 to +10
**/braket/default_simulator/openqasm/parser/generated/*
**/braket/device_schema/**
**/braket/ir/**
**/braket/task_result/**
Copy link
Contributor

Choose a reason for hiding this comment

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

These don't look correct

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why not?

Copy link
Contributor

@AbeCoull AbeCoull May 2, 2024

Choose a reason for hiding this comment

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

Do we need items such as:

    **/braket/simulator/*
    */site-packages/braket/*

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not yet. We might refine this list, but I'd like to understand how running the tests in this simulator overlaps with the functionality we use from the default sim.

.github/ISSUE_TEMPLATE/config.yml Outdated Show resolved Hide resolved
.github/ISSUE_TEMPLATE/config.yml Outdated Show resolved Hide resolved
.github/workflows/check-format.yml Outdated Show resolved Hide resolved
.github/workflows/check-format.yml Outdated Show resolved Hide resolved
src/braket/simulator_v2/simulator.py Show resolved Hide resolved
r.resultTypes = results
return r

"""A simulator meant to run directly on the user's machine using a Julia backend.
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment seems misplaced.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch

@property
def properties(self) -> GateModelSimulatorDeviceCapabilities:
observables = ["x", "y", "z", "h", "i", "hermitian"]
max_shots = sys.maxsize
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we set this to maxsize?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because the number of shots can be anything

tox.ini Outdated Show resolved Hide resolved
@AbeCoull
Copy link
Contributor

AbeCoull commented May 6, 2024

The coverage output still looks incorrect

@krneta krneta merged commit aec3305 into main May 6, 2024
12 checks passed
@krneta krneta deleted the initial branch May 6, 2024 17:48
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.

4 participants