From 9402f143c94734a41d765c59ad0bf203b11c8726 Mon Sep 17 00:00:00 2001 From: Megan <42215983+mlk621@users.noreply.github.com> Date: Wed, 2 Aug 2023 15:07:55 -0500 Subject: [PATCH] remove family submissions from example notebook --- examples/QuantinuumExample.ipynb | 48 ++++---------------------------- 1 file changed, 6 insertions(+), 42 deletions(-) diff --git a/examples/QuantinuumExample.ipynb b/examples/QuantinuumExample.ipynb index 4a77b66..0f3f69b 100644 --- a/examples/QuantinuumExample.ipynb +++ b/examples/QuantinuumExample.ipynb @@ -49,21 +49,11 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 7, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Enter your password: ········\n", - "***Successfully logged in***\n" - ] - } - ], + "outputs": [], "source": [ - "# Quantinuum.save_account(user_name=\"first.last@company.com\")\n", - "Quantinuum.save_account(user_name=\"megan.l.kohagen@quantinuum.com\")\n", + "Quantinuum.save_account(user_name=\"first.last@company.com\")\n", "Quantinuum.load_account()" ] }, @@ -126,7 +116,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -154,7 +144,7 @@ " 0 1 " ] }, - "execution_count": 5, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -343,32 +333,6 @@ "print(counts)" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Submit to a Machine Family\n", - "\n", - "If you would like faster access to hardware between the available quantum computers, you can submit to a Hardware Family. Submitting this way will run the job on whatever device is available first that has the number of qubits needed to run the circuit. " - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "device = 'H1'\n", - "shots = 100\n", - "\n", - "backend = Quantinuum.get_backend(device)\n", - "job = execute(circuit, backend, shots=shots)\n", - "\n", - "result = job.result()\n", - "counts = result.get_counts()\n", - "print(counts)" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -423,7 +387,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]" + "version": "3.10.11" }, "vscode": { "interpreter": {