Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.

Home Page:https://www.ibm.com/quantum/qiskit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Additional parameters for 'qiskit.visualization.plot_circuit_layout'

PetarJurcevic opened this issue · comments

What should we add?

Currently the function highlights the layout of a circuit transpiled for a given target backend.

Useful additional features/options would be:
(coloring is just a suggestions)

  • color non-used parts in grey
  • color used parts in green
  • pass a list of (user-defined) bad qubits/gates and high-light those in black if not used in circuit and in red if used in circuit
  • pass a list of specific quantum operations to be highlighted (example only highlight physical gates gates such as x,sx, zz,zx, measuremetns etc, but not barriers, delays
  • pass a list of specific quantum operations to be ignored (highlight everything but these operations, for example ignore barriers, but still highlight delays instructions
  • scaling feature to change graph size

possible example (here generated with qiskit.visualization.plot_coupling_map by passing a list of qubit colors manually

image