qiskit-metapackage icon indicating copy to clipboard operation
qiskit-metapackage copied to clipboard

How to highlight a gate in the image output of a circuit?

Open Co1lin opened this issue 3 years ago • 1 comments

What is the expected behavior?

I want to highlight a gate or surround it with a box in the image output of a circuit, but I cannot find how to do it.

Co1lin avatar Jul 24 '22 02:07 Co1lin

You can enclose a group of gates and represent as one on the quantum circuit by using the 'to_gate' method (with a label parameter) https://qiskit.org/documentation/stubs/qiskit.circuit.QuantumCircuit.to_gate.html

Amana-L avatar Sep 03 '22 22:09 Amana-L

Sorry that this didn't get a maintainer response at the time. Qiskit isn't really a general-purpose visualisation library; we have some minimal visualisations to assist with development, but for a fully featured graphics package for quantum-circuit visualisation, it's out of scope for us. If there's more to be said, please open an issue on Qiskit/qiskit-terra, but for the most part, additional visualisation features will likely not be considered in scope for the library.

jakelishman avatar Aug 04 '23 17:08 jakelishman