From cd2d2271ab7a1fb23497875066d958fb68db860e Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Wed, 3 Apr 2024 12:24:44 +0200 Subject: [PATCH] replace bind_parameters for assign_parameters --- tutorials/10_basic_vqe.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/10_basic_vqe.ipynb b/tutorials/10_basic_vqe.ipynb index fb17ea88..837682e9 100644 --- a/tutorials/10_basic_vqe.ipynb +++ b/tutorials/10_basic_vqe.ipynb @@ -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",