Skip to content

Commit

Permalink
replace bind_parameters for assign_parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaucasau committed Apr 3, 2024
1 parent 7094e0a commit cd2d227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/10_basic_vqe.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
"source": [
"def vqe_func(params, *args):\n",
" # Attach parameters to the transpiled circuit variables\n",
" bound_circs = [circ.bind_parameters(params) for circ in trans_circs]\n",
" bound_circs = [circ.assign_parameters(params) for circ in trans_circs]\n",
" # Submit the job and get the resultant counts back\n",
" counts = backend.run(bound_circs, shots=4096).result().get_counts()\n",
" # Apply mitigation to get quasi-probabilities\n",
Expand Down

0 comments on commit cd2d227

Please sign in to comment.