arbitrary order in circuit drawers
See original GitHub issueWhat should we add?
Circuit drawers currently have reverse_bits
, as an option to modify the order in which wires are represented. @ajavadia suggests a generalized version of that feature: wire_order
. This parameter might define the order of the wires draw(..., wire_order=[3,0,2,1])
and can eventually replace reverse_bits
with draw(..., wire_order='reverse'
.
Issue Analytics
- State:
- Created a year ago
- Comments:17 (17 by maintainers)
Top Results From Across the Web
Watt Circuit Component Drawer Build - YouTube
In this video we're building a rotating component tower for component storage. 800 drawers in under 1/3m2 floor area.
Read more >Organizing resistors - Electrical Engineering Stack Exchange
For bandoliered resistors (paper strip holding them together), I write the value on the bandolier then store the resistors in component drawers ......
Read more >PennyLane on Twitter: " Shiny new circuit drawer The ...
PennyLane v0.20 is out, with a new graphical circuit drawer, ... been rewritten to support: Arbitrary nth order gradients on hardware Batched executionΒ ......
Read more >Free Online Schematic and Diagramming Tool - Scheme-It
Scheme-it is an online schematic and diagramming tool that allows anyone to design and share electronic circuit diagrams. Walk through how to create...
Read more >10 Best Circuit Diagram Maker for 2022 - My Chart Guide
Circuit diagrams are a necessity in drawing electrical circuits. The best circuit diagram makers do make the process a lot easier for youΒ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A couple of more questions,
If a user uses both
reverse_bits
andwire_order
, do wewire_order
and then reverse itIf the the
wire_order
list is not the right length or does not have a unique integer for each bit, do wewire_order
But what Iβm saying is that
QuantumCircuit.reverse_bits()
is not just a change in visualization, it actually changes the circuit. So I think we need both the circuit option and the visualization option.and so we need to add a generalization of these in the form of
QuantumCiruit.permute_bits([....])
andQuantumCircuit.draw(permute_bits=[...])