Skip to content

Commit

Permalink
Simplify LocalSimulator import path
Browse files Browse the repository at this point in the history
  • Loading branch information
rmshaffer committed May 22, 2024
1 parent 8128271 commit 14c5e22
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ AutoQASM includes a simulator which can be accessed using the Amazon Braket loca
Let's simulate the `conditional_multi_bell_states` program:

```
from braket.devices.local_simulator import LocalSimulator
from braket.devices import LocalSimulator
device = LocalSimulator("autoqasm")
task = device.run(conditional_multi_bell_states, shots=100)
Expand Down
2 changes: 1 addition & 1 deletion examples/1_Getting_started_with_AutoQASM.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"import matplotlib.pyplot as plt\n",
"\n",
"# AWS imports: Import Braket SDK modules\n",
"from braket.devices.local_simulator import LocalSimulator\n",
"from braket.devices import LocalSimulator\n",
"\n",
"# AutoQASM imports\n",
"import autoqasm as aq\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/2_Expressing_classical_control_flow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"import matplotlib.pyplot as plt\n",
"\n",
"# AWS imports: Import Braket SDK modules\n",
"from braket.devices.local_simulator import LocalSimulator\n",
"from braket.devices import LocalSimulator\n",
"\n",
"# AutoQASM imports\n",
"import autoqasm as aq\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/3_1_Iterative_phase_estimation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"import matplotlib.pyplot as plt\n",
"\n",
"# AWS imports: Import Braket SDK modules\n",
"from braket.devices.local_simulator import LocalSimulator\n",
"from braket.devices import LocalSimulator\n",
"\n",
"# AutoQASM imports\n",
"import autoqasm as aq\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/3_2_magic_state_distillation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"from collections import defaultdict\n",
"\n",
"# AWS imports: Import Braket SDK modules\n",
"from braket.devices.local_simulator import LocalSimulator\n",
"from braket.devices import LocalSimulator\n",
"\n",
"# AutoQASM imports\n",
"import autoqasm as aq\n",
Expand Down
2 changes: 1 addition & 1 deletion src/autoqasm/simulator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
.. code-block:: python
import autoqasm as aq
from braket.devices.local_simulator import LocalSimulator
from braket.devices import LocalSimulator
@aq.main
def bell_state():
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/autoqasm/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"""

import pytest
from braket.devices.local_simulator import LocalSimulator
from braket.devices import LocalSimulator
from braket.tasks.local_quantum_task import LocalQuantumTask

import autoqasm as aq
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/autoqasm/test_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import numpy as np
import pytest
from braket.circuits import FreeParameter
from braket.devices.local_simulator import LocalSimulator
from braket.devices import LocalSimulator
from braket.tasks.local_quantum_task import LocalQuantumTask

import autoqasm as aq
Expand Down

0 comments on commit 14c5e22

Please sign in to comment.