Skip to content

Commit

Permalink
feat: Upgrade pulse notebooks (#294)
Browse files Browse the repository at this point in the history
Co-authored-by: Abe Coull <[email protected]>
  • Loading branch information
jcjaskula-aws and math411 authored Aug 16, 2023
1 parent c41aa65 commit 11acaf7
Show file tree
Hide file tree
Showing 28 changed files with 10,799 additions and 9,506 deletions.
8 changes: 4 additions & 4 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ dependencies:
- botocore==1.31.4
- awscli==1.29.4
- boto3==1.28.3
- amazon-braket-default-simulator==1.18.2
- amazon-braket-default-simulator==1.20.0
- amazon-braket-pennylane-plugin==1.17.4
- amazon-braket-schemas==1.19.0
- amazon-braket-sdk==1.49.1
- amazon-braket-schemas==1.19.1
- amazon-braket-sdk==1.54.0
- amazon-braket-algorithm-library==1.4.0
- cvxpy==1.3.1
- dask==2023.1.1
Expand All @@ -25,7 +25,7 @@ dependencies:
- mypy-extensions==0.4.3
- openfermion==1.5.1
- openfermionpyscf==0.5
- oqpy==0.1.1
- oqpy==0.2.1
- numpy==1.23.5
- pandas==2.0.0
- pennylane==0.31.0
Expand Down
1 change: 1 addition & 0 deletions examples/braket_features/Noise_models/model_dict.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"instructions": [{"noise": {"__class__": "Depolarizing", "probability": 0.1, "qubit_count": 1, "ascii_symbols": ["DEPO(0.1)"]}, "criteria": {"__class__": "GateCriteria", "gates": ["H"], "qubits": null}}, {"noise": {"__class__": "Depolarizing", "probability": 0.1, "qubit_count": 1, "ascii_symbols": ["DEPO(0.1)"]}, "criteria": {"__class__": "GateCriteria", "gates": null, "qubits": null}}, {"noise": {"__class__": "AmplitudeDamping", "gamma": 0.1, "qubit_count": 1, "ascii_symbols": ["AD(0.1)"]}, "criteria": {"__class__": "GateCriteria", "gates": null, "qubits": [0]}}, {"noise": {"__class__": "PauliChannel", "probX": 0.1, "probY": 0.2, "probZ": 0.3, "qubit_count": 1, "ascii_symbols": ["PC(0.1,0.2,0.3)"]}, "criteria": {"__class__": "GateCriteria", "gates": ["X"], "qubits": [0]}}, {"noise": {"__class__": "PhaseFlip", "probability": 0.02, "qubit_count": 1, "ascii_symbols": ["PF(0.02)"]}, "criteria": {"__class__": "ObservableCriteria", "observables": ["X"], "qubits": [0]}}, {"noise": {"__class__": "BitFlip", "probability": 0.01, "qubit_count": 1, "ascii_symbols": ["BF(0.01)"]}, "criteria": {"__class__": "ObservableCriteria", "observables": ["Z"], "qubits": [1]}}]}
10 changes: 10 additions & 0 deletions examples/braket_features/bell.qasm
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

OPENQASM 3;

qubit[2] q;
bit[2] c;

h q[0];
cnot q[0], q[1];

c = measure q;
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"braketSchemaHeader": {
"name": "braket.jobs_data.persisted_job_data",
"version": "1"
},
"dataDictionary": {
"counts": 10,
"angles": 0,
"task summary": "successfully tested",
"estimated cost": 0,
"params": [
0.318286378384603,
0.8066883422428826,
0.9965059377813476,
0.3896290997335934,
0.5206564140072295,
-0.2764708825453678,
-0.31186280728130517,
1.0301286608615072,
0.9152848732773509,
0.5028883778151009,
-0.08787270522674204,
0.7817302047193129,
0.9277263943430585,
0.013617062714961346,
0.33473964459716515,
0.5093557157601054,
-0.10513831465073813,
0.7394344226370994,
0.7317135947685797,
0.22689351139220243,
0.6120112028390869,
0.12146385313274964,
1.0822225752513248,
-0.03458224708388502,
-0.1581787215562068,
0.6144033545499605,
-0.03156199169778191,
0.9605311859582252,
0.29158765472875725,
0.4800667308210175,
0.5278158981111709,
0.2207241644995396,
-0.018214728388751607,
1.0549851014368496,
0.454472915580011,
0.6728275933353882,
0.5217854000399934,
0.39243334991421674,
0.9821097084351791,
0.5170651734719544,
0.7873812585011286,
0.8900537481277946,
0.21275468530086444,
0.9275566358136947,
0.39455123195247166
]
},
"dataFormat": "plaintext"
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"braketSchemaHeader": {
"name": "braket.jobs_data.persisted_job_data",
"version": "1"
},
"dataDictionary": {
"counts": 10,
"angles": 0,
"task summary": "successfully tested",
"estimated cost": 0,
"params": [
0.318286378384603,
0.8066883422428826,
0.9965059377813476,
0.3896290997335934,
0.5206564140072295,
-0.2764708825453678,
-0.31186280728130517,
1.0301286608615072,
0.9152848732773509,
0.5028883778151009,
-0.08787270522674204,
0.7817302047193129,
0.9277263943430585,
0.013617062714961346,
0.33473964459716515,
0.5093557157601054,
-0.10513831465073813,
0.7394344226370994,
0.7317135947685797,
0.22689351139220243,
0.6120112028390869,
0.12146385313274964,
1.0822225752513248,
-0.03458224708388502,
-0.1581787215562068,
0.6144033545499605,
-0.03156199169778191,
0.9605311859582252,
0.29158765472875725,
0.4800667308210175,
0.5278158981111709,
0.2207241644995396,
-0.018214728388751607,
1.0549851014368496,
0.454472915580011,
0.6728275933353882,
0.5217854000399934,
0.39243334991421674,
0.9821097084351791,
0.5170651734719544,
0.7873812585011286,
0.8900537481277946,
0.21275468530086444,
0.9275566358136947,
0.39455123195247166
]
},
"dataFormat": "plaintext"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
2
in Angstrom
H 0.00000 0.00000 -0.35000
H 0.00000 0.00000 0.35000
32 changes: 26 additions & 6 deletions examples/pulse_control/1_Bringup_experiments.ipynb

Large diffs are not rendered by default.

565 changes: 565 additions & 0 deletions examples/pulse_control/2_Native_gate_calibrations.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

541 changes: 0 additions & 541 deletions examples/pulse_control/3_Bell_pair_with_pulses_Rigetti.ipynb

This file was deleted.

539 changes: 539 additions & 0 deletions examples/pulse_control/4_Bell_pair_with_pulses_Rigetti.ipynb

Large diffs are not rendered by default.

548 changes: 0 additions & 548 deletions examples/pulse_control/4_Build_single_qubit_gates.ipynb

This file was deleted.

539 changes: 539 additions & 0 deletions examples/pulse_control/5_Build_single_qubit_gates.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 11acaf7

Please sign in to comment.