Skip to content

Commit

Permalink
Fixed formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
pehamTom committed Sep 13, 2022
1 parent 38bbd7c commit f31bb8e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/source/Mapping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,18 +159,18 @@ Using the heuristic mapper works completely analogous to the exact mapper.
.. code-block:: console
┌───┐┌───┐ ┌───┐ ┌───┐ ┌─┐
q_0 -> 0 ┤ H ├┤ X ├──■──┤ T ├──────────────────────────────┤ X ├───┤M├
└───┘└─┬─┘┌─┴─┐├───┤ ┌───┐ ┌───┐└─┬─┘┌─┐└╥┘
q_1 -> 1 ───────■──┤ X ├┤ X ├──■──┤ T ├────────────■──┤ X ├──■──┤M├─╫─
└───┘└─┬─┘┌─┴─┐└───┘┌───┐ ┌─┴─┐└─┬─┘ ┌─┐ └╥┘ ║
q_2 -> 2 ─────────────────■──┤ X ├──■──┤ T ├──■──┤ X ├──■───┤M├──╫──╫─
└───┘┌─┴─┐├───┤┌─┴─┐└┬─┬┘ └╥┘ ║ ║
q_3 -> 3 ─────────────────────────┤ X ├┤ T ├┤ X ├─┤M├────────╫───╫──╫─
┌───┐┌───┐ ┌───┐ ┌───┐ ┌─┐
q_0 -> 0 ┤ H ├┤ X ├──■──┤ T ├──────────────────────────────┤ X ├───┤M├
└───┘└─┬─┘┌─┴─┐├───┤ ┌───┐ ┌───┐└─┬─┘┌─┐└╥┘
q_1 -> 1 ───────■──┤ X ├┤ X ├──■──┤ T ├────────────■──┤ X ├──■──┤M├─╫─
└───┘└─┬─┘┌─┴─┐└───┘┌───┐ ┌─┴─┐└─┬─┘ ┌─┐ └╥┘ ║
q_2 -> 2 ─────────────────■──┤ X ├──■──┤ T ├──■──┤ X ├──■───┤M├──╫──╫─
└───┘┌─┴─┐├───┤┌─┴─┐└┬─┬┘ └╥┘ ║ ║
q_3 -> 3 ─────────────────────────┤ X ├┤ T ├┤ X ├─┤M├────────╫───╫──╫─
└───┘└───┘└───┘ └╥┘ ║ ║ ║
c: 4/══════════════════════════════════════════╩═════════╩═══╩══╩═
c: 4/══════════════════════════════════════════╩═════════╩═══╩══╩═
3 2 0 1
Additional gates: 3
Additional gates: 3
Runtime: 0.000065

While this solution is not optimal anymore it only requires one more gate and even for such a small example the heuristic mapper is orders of magnitudes faster than the exact mapper.

0 comments on commit f31bb8e

Please sign in to comment.