Skip to content

Fix teleport example in docs. #219

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

Merged
merged 1 commit into from
Apr 29, 2018
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ What she can do is use quantum teleportation to achieve this task. Yet, this onl
They can create a Bell-pair using a very simple circuit which first applies a Hadamard gate to the first qubit, and then flips the second qubit conditional on the first qubit being in :math:`|1\rangle`. The circuit diagram can be generated by calling the function

.. literalinclude:: ../examples/teleport.py
:lines: 6,19-25
:lines: 6,18-25
:tab-width: 2

with a main compiler engine which has a CircuitDrawer back-end, i.e.,
Expand All @@ -88,7 +88,7 @@ The complete example looks as follows:

.. literalinclude:: ../examples/teleport.py
:linenos:
:lines: 1-6,19-27,44-99
:lines: 1-6,18-27,44-99
:tab-width: 2

and the corresponding circuit can be generated using
Expand Down