Skip to content

Commit

Permalink
revert draw mpl (once qiskit fixes Qiskit/qiskit#11750 )
Browse files Browse the repository at this point in the history
  • Loading branch information
1ucian0 committed Feb 8, 2024
1 parent 888e9f7 commit 8d893aa
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/basic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ needed modules, and construct a circuit of interest.
qc.cx(5,4)
qc.cx(1,2)
qc.measure_all()
qc.draw('text')
qc.draw('mpl')

Next we calibrate an M3 mitigator instance over qubits 0 -> 6 (Step #1):

Expand Down
2 changes: 1 addition & 1 deletion docs/error.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Let us first calibrate the mitigator and get raw results:
qc.cx(5,4)
qc.cx(1,2)
qc.measure_all()
qc.draw('text')
qc.draw('mpl')


.. jupyter-execute::
Expand Down
2 changes: 1 addition & 1 deletion docs/grouped.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ this consider the following simple example:
qc.h(0)
qc.cx(0, range(1, 4))
qc.measure_all()
qc.draw('text')
qc.draw('mpl')

Here we will generate and execute two circuits on the target system (fake system in this case),
and, because we have transpiled, find the final measurement mapping:
Expand Down
2 changes: 1 addition & 1 deletion docs/marginals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Consider the following circuit that we would like to evaluate:
for kk in range(N//2, N-1):
qc.ch(kk, kk+1)
qc.measure_all()
qc.draw('text')
qc.draw('mpl')


Let us first map this onto the target system and compute the final measurement mapping:
Expand Down
4 changes: 2 additions & 2 deletions docs/transpiled.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ For example consider the Bernstein-Vazirani circuit
qc.h(range(4))
qc.barrier()
qc.measure(range(4), range(4))
qc.draw('text')
qc.draw('mpl')

The target Casablanca system does not have the needed connectivity to natively
embed the circuit and we must SWAP map it:
Expand All @@ -34,7 +34,7 @@ embed the circuit and we must SWAP map it:

backend = FakeCasablanca()
trans_qc = transpile(qc, backend, optimization_level=3, seed_transpiler=12345)
trans_qc.draw('text')
trans_qc.draw('mpl')


We can see from the measurements at the end that what was circuit qubit 0 is now mapped to physical
Expand Down
4 changes: 2 additions & 2 deletions docs/utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ bits they correspond to. Here we show another example of this usage. First we
qc.h(0)
qc.cx(0, range(1,7))
qc.measure_all()
qc.draw('text')
qc.draw('mpl')

and then transpile it:

.. jupyter-execute::

backend = FakeCasablanca()
trans_qc = transpile(qc, backend, optimization_level=3, seed_transpiler=54321)
trans_qc.draw('text')
trans_qc.draw('mpl')

Once again we see that the physical qubits used and to which classical bits they map
to is non-trivial to find. Yet this information is critical for successfully mitigating
Expand Down

0 comments on commit 8d893aa

Please sign in to comment.