Skip to content

Commit

Permalink
feat: update dependencies to include numpy 1.25.x and Pennylane 0.33.x (
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeCoull authored Dec 9, 2023
1 parent 398dd26 commit 72bf793
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 30 deletions.
34 changes: 17 additions & 17 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
botocore==1.31.68
awscli==1.29.68
boto3==1.28.68
botocore==1.31.84
awscli==1.29.84
boto3==1.28.84
amazon-braket-default-simulator==1.20.1
amazon-braket-pennylane-plugin==1.23.0
amazon-braket-schemas==1.19.1.post0
amazon-braket-sdk==1.63.0
amazon-braket-algorithm-library==1.4.4
cvxpy==1.4.1
ipykernel==6.25.2
jax==0.4.10
jaxlib==0.4.10
ipykernel==6.26.0
jax==0.4.20
jaxlib==0.4.20
jinja2==3.1.2
markupsafe==2.1.3
matplotlib==3.8.0
ml-dtypes==0.2.0
matplotlib==3.8.1
ml-dtypes==0.3.1
mypy-extensions==1.0.0
openfermion==1.5.1
openfermion==1.5.1 # later versions pin scipy to a version that is incompatible
openfermionpyscf==0.5
optax==0.1.5
numpy==1.23.5
pandas==2.1.1
pennylane==0.32.0
PennyLane-Lightning==0.32.0
qiskit-aer==0.12.2
optax==0.1.7
numpy==1.25.2
pandas==2.1.3
pennylane==0.33.1
PennyLane-Lightning==0.33.1
qiskit-aer==0.13.0
qiskit_braket_provider==0.0.5
qiskit-terra==0.25.2.1
scipy==1.11.3
qiskit-terra==0.45.0
scipy==1.11.4
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ def pre_run_inject(mock_utils):
f.write(default_job_results)
with tarfile.open("model.tar.gz", "w:gz") as tar:
tar.add("results.json")
subprocess.run = subprocess_run
subprocess.check_output = subprocess_check_output
subprocess.Popen = subprocess_open

os.environ["AMZN_BRAKET_DEVICE_ARN"] = f"arn:aws:braket:{mocker.region_name}::device/qpu/arn/TestARN"

Expand All @@ -56,10 +54,6 @@ def post_run(tb):
)


def subprocess_run(*args, **kwargs):
return mock.Mock()


def subprocess_check_output(*args, **kwargs):
cmd = args[0]
if cmd[0] == "docker" and cmd[1] == "cp" and cmd[3].startswith("braket-job"):
Expand All @@ -69,10 +63,3 @@ def subprocess_check_output(*args, **kwargs):
f.write(default_job_results)

return mock.Mock()


def subprocess_open(*args, **kwargs):
open_mock = mock.Mock()
open_mock.stdout.readline.return_value.decode.return_value = "Successfully Tested"
open_mock.poll.return_value = 0
return open_mock

0 comments on commit 72bf793

Please sign in to comment.