From 34b536332116868cdcf925fb822570ee4ae7edac Mon Sep 17 00:00:00 2001 From: Thomas Haener Date: Thu, 26 Apr 2018 10:46:47 +0200 Subject: [PATCH] Fixing teleport example in docs. --- docs/examples.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples.rst b/docs/examples.rst index 57aaee347..203c3ae40 100755 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -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., @@ -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