-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a
ProcessPoolExecutor
to talk to Julia (#30)
- Loading branch information
1 parent
1d6791f
commit 1ac470f
Showing
10 changed files
with
207 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,9 @@ | ||
from braket.ir.openqasm import Program as OpenQASMProgram | ||
|
||
from braket.simulator_v2.density_matrix_simulator_v2 import ( # noqa: F401 | ||
DensityMatrixSimulatorV2, | ||
) | ||
from braket.simulator_v2.julia_import import jl, jlBraketSimulator # noqa: F401 | ||
from braket.simulator_v2.julia_import import setup_julia # noqa: F401 | ||
from braket.simulator_v2.state_vector_simulator_v2 import ( # noqa: F401 | ||
StateVectorSimulatorV2, | ||
) | ||
|
||
from ._version import __version__ # noqa: F401 | ||
|
||
payload = OpenQASMProgram( | ||
source=""" | ||
OPENQASM 3.0; | ||
qubit[1] q; | ||
h q[0]; | ||
#pragma braket result state_vector | ||
""" | ||
) | ||
StateVectorSimulatorV2().run_openqasm(payload) | ||
StateVectorSimulatorV2().run_multiple([payload, payload]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.