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

feature: Add automated benchmarking to GitHub #35

Merged
merged 11 commits into from
Oct 7, 2024
Prev Previous commit
Next Next commit
change: Use multiprocessing Pool rather than ProcessPoolExecutor
kshyatt-aws committed Sep 27, 2024

Verified

This commit was signed with the committer’s verified signature.
ntarocco Nicola
commit c66cd100d28262194b31bc35a86537178b984973
4 changes: 3 additions & 1 deletion src/braket/simulator_v2/base_simulator_v2.py
Original file line number Diff line number Diff line change
@@ -85,6 +85,7 @@ def setup_pool():
atexit.register(__JULIA_POOL__.close)
return


class BaseLocalSimulatorV2(BaseLocalSimulator):
def __init__(self, device: str):
global __JULIA_POOL__
@@ -165,8 +166,9 @@ def run_multiple(
_handle_julia_error(e)

results = [
GateModelTaskResult.parse_raw_schema(jl_result) for jl_result in jl_results
GateModelTaskResult(**json.loads(jl_result)) for jl_result in jl_results
]
jl_results = None
for p_ix, program in enumerate(programs):
results[p_ix].additionalMetadata.action = program