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

Aws jobs #177

Merged
merged 14 commits into from
Feb 20, 2023
Merged

Aws jobs #177

merged 14 commits into from
Feb 20, 2023

Conversation

Q-lds
Copy link
Member

@Q-lds Q-lds commented Feb 2, 2023

The basic usage is outlined in the test file: test_aws_managed_jobs.py

input_data_path = os.path.join(
    os.environ["AMZN_BRAKET_INPUT_DIR"], "input_data/"
)

# Create the qubo and the qaoa
q = QAOA()
q.set_device(create_device('aws', 'arn:aws:braket:::device/quantum-simulator/amazon/sv1'))
q.compile(self.vc)
q.dump(file_name='openqaoa_params.json', file_path=input_data_path, prepend_id=False, overwrite=True)

job = LocalQuantumJob.create(
    device="arn:aws:braket:::device/quantum-simulator/amazon/sv1",
    source_module="./tests/jobs_test_input/aws_braket_source_module/openqaoa_qaoa_script.py",
    image_uri="amazon-braket-oq-dev",
    input_data={"input_data": input_data_path},
)

@Q-lds Q-lds added the enhancement New feature or request label Feb 2, 2023
@Q-lds Q-lds self-assigned this Feb 2, 2023
Base automatically changed from de_folder_restruct to dev February 17, 2023 06:09
@codecov
Copy link

codecov bot commented Feb 20, 2023

Codecov Report

Merging #177 (f18926e) into dev (389d57f) will decrease coverage by 0.75%.
The diff coverage is 54.91%.

@@            Coverage Diff             @@
##              dev     #177      +/-   ##
==========================================
- Coverage   90.11%   89.36%   -0.75%     
==========================================
  Files          30       31       +1     
  Lines        5685     5802     +117     
==========================================
+ Hits         5123     5185      +62     
- Misses        562      617      +55     
Impacted Files Coverage Δ
tests/test_aws_managed_jobs.py 45.36% <45.36%> (ø)
tests/test_utilities.py 99.40% <80.00%> (-0.60%) ⬇️
tests/test_workflows.py 99.49% <100.00%> (+<0.01%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Q-lds Q-lds merged commit 62f7fa4 into dev Feb 20, 2023
@vishal-ph vishal-ph deleted the aws_jobs branch February 21, 2023 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants