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

Add simulator v2 install and precompilation to container build steps #612

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
6 changes: 3 additions & 3 deletions examples/pulse_control/1_Bringup_experiments.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -461,12 +461,12 @@
"detuning=250e3\n",
"x90 = experiment_configuration[device_name][\"x90_wf\"]\n",
"\n",
"delay = FreeParameter(\"delay\")\n",
"delay_duration = FreeParameter(\"delay_duration\")\n",
"ramsey_spectroscopy = ( \n",
" PulseSequence()\n",
" .set_frequency(drive_frame, drive_frame.frequency - detuning)\n",
" .play(drive_frame, x90)\n",
" .delay(drive_frame, delay)\n",
" .delay(drive_frame, delay_duration)\n",
" .play(drive_frame, x90)\n",
" .capture_v0(readout_frame)\n",
")"
Expand All @@ -491,7 +491,7 @@
"delays = np.arange(start_delay, end_delay, 512e-9)\n",
"N_shots=100\n",
"\n",
"pulse_sequences = [ramsey_spectroscopy(delay=delay) for delay in delays]\n",
"pulse_sequences = [ramsey_spectroscopy(delay_duration=delay) for delay in delays]\n",
"\n",
"batch = device.run_batch(pulse_sequences, shots=N_shots)"
]
Expand Down
7 changes: 7 additions & 0 deletions nbi/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ phases:
- mkdir -p envs
- conda config --set path_conflict warn
- conda env create --name $BRAKET_ENV -f environment.yml --no-default-package --solver libmamba
- export JULIA_HOME=$LCC_MINICONDA_INSTALL_DIR/envs/$BRAKET_ENV/julia_env/pyjuliapkg/install/bin
- export PYTHON_JULIAPKG_PROJECT=$LCC_MINICONDA_INSTALL_DIR/envs/$BRAKET_ENV/julia_env
- export JULIA_DEPOT_PATH=$LCC_MINICONDA_INSTALL_DIR/envs/$BRAKET_ENV/.julia
- export CONDA_JL_HOME=$LCC_MINICONDA_INSTALL_DIR/envs/$BRAKET_ENV
- export JULIA_CONDAPKG_ENV=$LCC_MINICONDA_INSTALL_DIR/envs/$BRAKET_ENV
- export JULIA_CONDAPKG_BACKEND=Current
- source activate base && conda activate $BRAKET_ENV && python -c "import braket.simulator_v2"
- pip cache purge
- conda pack --quiet --name $BRAKET_ENV --output envs/Braket.tar --compress-level 1 --n-threads -1
- zstd -16 envs/Braket.tar -T0 --auto-threads=logical --rsyncable --sparse
Expand Down
15 changes: 10 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
botocore==1.34.113
awscli==1.32.113
boto3==1.34.113
amazon-braket-default-simulator==1.23.2
amazon-braket-default-simulator==1.26.0
amazon-braket-simulator-v2==0.2.2
amazon-braket-pennylane-plugin==1.27.3
amazon-braket-schemas==1.22.0
amazon-braket-sdk==1.80.0
amazon-braket-sdk==1.84.0
amazon-braket-algorithm-library==1.4.11
cvxpy==1.5.1
ipykernel==6.29.4
jax==0.4.28
jaxlib==0.4.28
jinja2==3.1.4
juliacall==0.9.20
juliapkg==0.1.13
markupsafe==2.1.5
matplotlib==3.9.0
ml-dtypes==0.4.0
Expand All @@ -22,10 +25,12 @@ optax==0.2.2
pandas==2.2.2
pennylane==0.35.1
PennyLane-Lightning==0.35.1
qiskit-aer==0.14.0.1
qiskit-aer==0.14.2
qiskit-algorithms==0.3.0
qiskit-braket-provider==0.4.0
qiskit==1.0.2
qiskit-braket-provider==0.4.1
qiskit-ionq==0.5.4
qiskit==1.1.2
scipy==1.13.1
scs<3.2.6 # Pinned for GLIBC 2.26 compatability
semver==3.0.2
sympy<1.13 # Sympy 1.13 produces different results for Simon's algorithm