diff --git a/docs/qubits.ipynb b/docs/qubits.ipynb index 637cf99e1e4..2e93404a2b8 100644 --- a/docs/qubits.ipynb +++ b/docs/qubits.ipynb @@ -1,14 +1,5 @@ { "cells": [ - { - "cell_type": "markdown", - "metadata": { - "id": "WZ1G8QHhdHZR" - }, - "source": [ - "##### Copyright 2020 The Cirq Developers" - ] - }, { "cell_type": "code", "execution_count": null, @@ -18,7 +9,8 @@ }, "outputs": [], "source": [ - "#@title Licensed under the Apache License, Version 2.0 (the \"License\");\n", + "#@title Copyright 2020 The Cirq Developers\n", + "# Licensed under the Apache License, Version 2.0 (the \"License\");\n", "# you may not use this file except in compliance with the License.\n", "# You may obtain a copy of the License at\n", "#\n", @@ -75,7 +67,8 @@ "except ImportError:\n", " print(\"installing cirq...\")\n", " !pip install --quiet cirq\n", - " print(\"installed cirq.\")" + " print(\"installed cirq.\")\n", + " import cirq" ] }, { @@ -87,7 +80,7 @@ "A qubit is the basic unit of quantum information, a quantum bit: a two level system that can exist in superposition of those two possible states. Cirq also supports higher dimensional systems, so called [qudits](qudits.ipynb) that we won't cover here.\n", "\n", "In Cirq, a `Qubit` is nothing else than an abstract object that has an identifier, a `cirq.Qid` and some other potential metadata to represent device specific properties that can be used to validate a circuit.\n", - "In contrast to real qubits, the Cirq qubit does not have any state. The reason for this is that the actual state of the qubit or qubits is maintained in the quantum processor, or, in case of simulation, in the simulated state vector." + "In contrast to real qubits, the Cirq qubit does not have any state. The reason for this is that the actual state of the qubits is maintained in the quantum processor, or, in case of simulation, in the simulated state vector." ] }, { @@ -109,8 +102,6 @@ } ], "source": [ - "import cirq\n", - "\n", "qubit = cirq.NamedQubit(\"myqubit\")\n", "\n", "# creates an equal superposition of |0> and |1> when simulated\n",