forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom gate support to mpl backend (Qiskit#2070)
* Add custom gate support to mpl backend This commit adds support for custom gate types to the mpl backend. It handles arbitrary sized gates and uses the node name as the gate name. By default all the gates are wide since the names are of unknown length. A future improvement would be to make the gate width dynamic based on the name length. Fixes Qiskit#1941 * Remove stray print * Updates per review comments * Fix lint * Add dynamic spacing and sizing for gates * Fix lint * Add support for gates with non-contiguous qubits * Add input qubit annotation to custom gates
- Loading branch information
Showing
1 changed file
with
109 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters