Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gates.ipynb formatting #5175

Merged
merged 2 commits into from
Apr 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 4 additions & 19 deletions docs/gates.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"except ImportError:\n",
" print(\"installing cirq...\")\n",
" !pip install --quiet cirq\n",
" print(\"installed cirq.\")"
" print(\"installed cirq.\")\n",
" import cirq"
]
},
{
Expand Down Expand Up @@ -128,22 +129,8 @@
"metadata": {
"id": "psYGZcjUEF5V"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"H(b)\n",
"CNOT(b, c)\n",
"CNOT(a, b)\n",
"H(a)\n",
"cirq.MeasurementGate(2, 'a,b', ())(a, b)\n"
]
}
],
"outputs": [],
"source": [
"import cirq\n",
"\n",
"# This examples uses named qubits to remain abstract.\n",
"# However, we can also use LineQubits or GridQubits to specify a geometry\n",
"a = cirq.NamedQubit('a')\n",
Expand Down Expand Up @@ -354,9 +341,7 @@
],
"metadata": {
"colab": {
"collapsed_sections": [
"Sh9QBnKbFf_B"
],
"collapsed_sections": [],
"name": "gates.ipynb",
"toc_visible": true
},
Expand Down