Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
fix: machine-learning-qiskit-pytorch.ipynb deprecapted package fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nuvinga committed Jun 22, 2023
1 parent 96b7457 commit 61deab1
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,7 @@
" def run(self, thetas):\n",
" t_qc = transpile(self._circuit,\n",
" self.backend)\n",
" qobj = assemble(t_qc,\n",
" shots=self.shots,\n",
" parameter_binds = [{self.theta: theta} for theta in thetas])\n",
" job = self.backend.run(qobj)\n",
" job = self.backend.run(t_qc)\n",
" result = job.result().get_counts()\n",
" \n",
" counts = np.array(list(result.values()))\n",
Expand Down

0 comments on commit 61deab1

Please sign in to comment.