From b79e92192a355cbe3a30768e564a95b670971b04 Mon Sep 17 00:00:00 2001 From: Guen Prawiroatmodjo Date: Mon, 6 Jun 2022 15:34:35 -0700 Subject: [PATCH 1/3] Update VQE-qiskit-hydrogen-quantinuum-emulator.ipynb --- .../VQE-qiskit-hydrogen-quantinuum-emulator.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/azure-quantum/variational-quantum-eigensolver/VQE-qiskit-hydrogen-quantinuum-emulator.ipynb b/samples/azure-quantum/variational-quantum-eigensolver/VQE-qiskit-hydrogen-quantinuum-emulator.ipynb index 85176683864e..5c7576d6c6cb 100644 --- a/samples/azure-quantum/variational-quantum-eigensolver/VQE-qiskit-hydrogen-quantinuum-emulator.ipynb +++ b/samples/azure-quantum/variational-quantum-eigensolver/VQE-qiskit-hydrogen-quantinuum-emulator.ipynb @@ -166,7 +166,7 @@ "# Create a VQE object that runs VQE using the above created qubit operations, variational form and optimizer\n", "vqe = VQE(qubit_op, var_form, optimizer=optimizer)\n", "\n", - "# Run the full VQE program\n", + "# Run the full VQE program. This might take up to 50 seconds to run on the noisy simulator.\n", "ret = vqe.run(quantum_instance)\n", "\n", "# Get and print the result\n", From cf2c96f39c26ad781c757627598d3d1f84d38f7b Mon Sep 17 00:00:00 2001 From: Guen Prawiroatmodjo Date: Mon, 6 Jun 2022 15:33:24 -0700 Subject: [PATCH 2/3] Update VQE-qiskit-hydrogen-quantinuum-emulator.ipynb --- .../VQE-qiskit-hydrogen-quantinuum-emulator.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/azure-quantum/variational-quantum-eigensolver/VQE-qiskit-hydrogen-quantinuum-emulator.ipynb b/samples/azure-quantum/variational-quantum-eigensolver/VQE-qiskit-hydrogen-quantinuum-emulator.ipynb index 5c7576d6c6cb..22eca904a57e 100644 --- a/samples/azure-quantum/variational-quantum-eigensolver/VQE-qiskit-hydrogen-quantinuum-emulator.ipynb +++ b/samples/azure-quantum/variational-quantum-eigensolver/VQE-qiskit-hydrogen-quantinuum-emulator.ipynb @@ -515,7 +515,7 @@ "source": [ "num_iterations = 300\n", "energy_eval_cost = sum(_cost.estimated_total for _cost in cost)\n", - "print(f\"Single iteration: {energy_eval_cost} {_cost.currency_code}, {num_iterations} iterations: {energy_eval_cost * num_iterations} {_cost.currency_code}\")" + "print(f\"Single iteration: {energy_eval_cost} {cost[0].currency_code}, {num_iterations} iterations: {energy_eval_cost * num_iterations} {cost[0].currency_code}\")" ] }, { From 683107c2d7003f740183c30c556bd7b60f897a89 Mon Sep 17 00:00:00 2001 From: Guen Prawiroatmodjo Date: Mon, 6 Jun 2022 15:32:58 -0700 Subject: [PATCH 3/3] Update VQE-qiskit-hydrogen-ionq-sim.ipynb --- .../VQE-qiskit-hydrogen-ionq-sim.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/azure-quantum/variational-quantum-eigensolver/VQE-qiskit-hydrogen-ionq-sim.ipynb b/samples/azure-quantum/variational-quantum-eigensolver/VQE-qiskit-hydrogen-ionq-sim.ipynb index a908c3e154f9..5669af2ecb9d 100644 --- a/samples/azure-quantum/variational-quantum-eigensolver/VQE-qiskit-hydrogen-ionq-sim.ipynb +++ b/samples/azure-quantum/variational-quantum-eigensolver/VQE-qiskit-hydrogen-ionq-sim.ipynb @@ -514,7 +514,7 @@ "source": [ "num_iterations = 300\n", "energy_eval_cost = sum(_cost.estimated_total for _cost in cost)\n", - "print(f\"Single iteration: {energy_eval_cost} {_cost.currency_code}, {num_iterations} iterations: {energy_eval_cost * num_iterations} {_cost.currency_code}\")" + "print(f\"Single iteration: {energy_eval_cost} {cost[0].currency_code}, {num_iterations} iterations: {energy_eval_cost * num_iterations} {cost[0].currency_code}\")" ] }, {