Skip to content

Commit

Permalink
simplify looping reset in AutoQASM notebook (#844)
Browse files Browse the repository at this point in the history
* simplify for-looping reset in notebook

* update mcm-cim version
  • Loading branch information
yitchen-tim authored Dec 22, 2023
1 parent 5850e06 commit fe741da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions examples/autoqasm/3_2_magic_state_distillation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,9 @@
" # RUS: repeat until measuring all-zero in ancilla\n",
" c1 = aq.BoolVar(True)\n",
" while c1:\n",
" # reset qubits\n",
" for q in qubits:\n",
" ins.reset(q)\n",
"\n",
" # state preparation\n",
" for q in aq_qubits:\n",
" ins.reset(q)\n",
" physical_magic_state_t_type(q)\n",
"\n",
" # decoding\n",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# to get the version of the simulator that supports the mcm=True argument for Monte Carlo
# simulation of mid-circuit measurement, which AutoQASM requires.
# NOTE: This change should remain in the feature/autoqasm branch; do not merge to main.
"amazon-braket-default-simulator @ git+https://github.com/aws/amazon-braket-default-simulator-python.git@e11063f2cc626bbb94ee0a3eb9690dd5ff491308#egg=amazon-braket-default-simulator", # noqa E501
"amazon-braket-default-simulator @ git+https://github.com/aws/amazon-braket-default-simulator-python.git@f17d3070a4f87a3bbef677e385a2e94dd386af78#egg=amazon-braket-default-simulator", # noqa E501
"oqpy~=0.3.3",
"setuptools",
"backoff",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ commands =
deps =
# If you need to test on a certain branch, add @<branch-name> after .git
git+https://github.com/amazon-braket/amazon-braket-schemas-python.git
git+https://github.com/amazon-braket/amazon-braket-default-simulator-python.git@e11063f2cc626bbb94ee0a3eb9690dd5ff491308 # mcm-sim branch
git+https://github.com/amazon-braket/amazon-braket-default-simulator-python.git@f17d3070a4f87a3bbef677e385a2e94dd386af78 # mcm-sim branch

0 comments on commit fe741da

Please sign in to comment.