Skip to content

Commit

Permalink
Fixing teleport example in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashaener committed Apr 26, 2018
1 parent cdb263f commit 34b5363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples.rst
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

0 comments on commit 34b5363

Please sign in to comment.