Skip to content

Commit

Permalink
No code: fix typo in documentation which used the old .program prop…
Browse files Browse the repository at this point in the history
…erty
  • Loading branch information
notmgsk committed Oct 15, 2021
1 parent 50e31f6 commit f6225cc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/source/compiler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ as in the following:
ep = qc.compile(Program(H(0), CNOT(0,1), CNOT(1,2)))
print(ep.program)
print(ep)
with output

Expand Down Expand Up @@ -111,7 +111,7 @@ the previous example snippet is identical to the following:
print(np.metadata)
ep = qc.compiler.native_quil_to_executable(np)
print(ep.program)
print(ep)
Timeouts
--------
Expand Down Expand Up @@ -346,7 +346,7 @@ For example, consider running a ``CZ`` on non-neighboring qubits on a linear dev
qc = _get_qvm_with_topology(name="line", topology=graph)
p = Program(CZ(0, 2))
print(qc.compile(p).program)
print(qc.compile(p))
CZ 2 1
Expand All @@ -368,7 +368,7 @@ inserting swaps. For example, the following program requires a ``SWAP`` that inc
qc = _get_qvm_with_topology(name="line", topology=graph)
p = Program(CZ(0, 1), H(0), CZ(1, 2), CZ(0, 2))
print(qc.compile(p).program)
print(qc.compile(p))
CZ 2 1
RX(-pi/2) 2
Expand Down Expand Up @@ -433,7 +433,7 @@ For example, if your program consists of two-qubit instructions where the qubits
qc = get_qc("Aspen-X", as_qvm=True)
p = Program(CZ(3, 4))
print(qc.compile(p).program)
print(qc.compile(p))
CZ 3 4
Expand All @@ -452,7 +452,7 @@ partial strategy:
qc = get_qc("Aspen-X", as_qvm=True)
p = Program(CZ(3, 4))
print(qc.compile(p).program)
print(qc.compile(p))
RZ(-pi/2) 0
RX(pi/2) 0
Expand Down Expand Up @@ -485,7 +485,7 @@ compiling this program with naive rewiring will **not** move the ``CZ`` to a bet
qc = get_qc("Aspen-X", as_qvm=True)
p = Program('PRAGMA INITIAL_REWIRING "NAIVE"', CZ(0, 1))
print(qc.compile(p).program)
print(qc.compile(p))
PRAGMA INITIAL_REWIRING "NAIVE"
CZ 0 1
Expand All @@ -502,7 +502,7 @@ logical-physical qubit mapping. For example,
qc = get_qc("Aspen-X", as_qvm=True)
p = Program('PRAGMA INITIAL_REWIRING "NAIVE"', CZ(0, 2))
print(qc.compile(p).program)
print(qc.compile(p))
PRAGMA INITIAL_REWIRING "NAIVE"
CZ 6 5
Expand Down Expand Up @@ -534,7 +534,7 @@ the compiler can find an alternative that improves the program fidelity:
qc = get_qc("Aspen-X", as_qvm=True)
p = Program('PRAGMA INITIAL_REWIRING "PARTIAL"', CZ(0, 1))
print(qc.compile(p).program)
print(qc.compile(p))
PRAGMA INITIAL_REWIRING "PARTIAL"
CZ 20 27
Expand Down

0 comments on commit f6225cc

Please sign in to comment.