{ "cells": [ { "cell_type": "markdown", "id": "1ccdbc14-89ee-4f0e-b3fa-177b285b2cfb", "metadata": {}, "source": [ "# IBM Quantum account verification\n", "\n", "Once you have created an account on IBM Quantum, verify whether you have proper access to the backends for Experiment 1." ] }, { "cell_type": "code", "execution_count": 1, "id": "5bcb9ff5-bc44-49c2-b771-214dc2a81f4a", "metadata": {}, "outputs": [], "source": [ "from qiskit import IBMQ" ] }, { "cell_type": "code", "execution_count": 2, "id": "cb5dcbbd-6344-4c77-a6a0-290c846f808b", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# load your account\n", "IBMQ.load_account()" ] }, { "cell_type": "code", "execution_count": 3, "id": "d434f642-a8eb-41ea-b519-e96dc6d0a219", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[,\n", " ]" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# check the list of available providers\n", "IBMQ.providers()" ] }, { "cell_type": "markdown", "id": "e1dc6652-388a-499b-beb9-e0ad9f58c21e", "metadata": {}, "source": [ "You must see ´IBMQ(hub='ibm-q-education', group='aalto-uni-1', project='phys-c0258')´ in the list of providers. Send me an email in case you don't see it. Make sure that you have given me the correct email address belonging to your IBMQ account. I need to add your email manually, which might take some time." ] }, { "cell_type": "code", "execution_count": 4, "id": "049e59b0-ecbb-4b0b-8853-fce1c744698d", "metadata": {}, "outputs": [], "source": [ "# choose specific provider\n", "provider = IBMQ.get_provider(project='phys-c0258') # always choose this project for running Experiment 1" ] }, { "cell_type": "code", "execution_count": 5, "id": "3b10e69e-05eb-4bd9-81e0-9236c65e271d", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ,\n", " ]" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# check available backends\n", "provider.backends()" ] }, { "cell_type": "code", "execution_count": null, "id": "3c34aca0-3cd6-454c-8c4a-d32ce48a53d6", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Qiskit v0.29.0", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.10" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "state": {}, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 5 }