add visualization of open controlled gates [text drawer]
See original GitHub issueIn PR #3739, open controlled gates were implemented. With that PR a new keyword argument was added to specify the control state,
XGate().control(3, ctrl_state=6)
This creates a 4 qubit gate where the first three qubits are controls and the fourth qubit is the target where the x-gate may be applied. A ctrl_state
may alternatively be expressed as an integer string,
XGate().control(3, ctrl_state='110')
where it is more apparent which qubits are open and closed. In this case when q[0] is open and q[1] and q[2] are closed the x-gate will be applied to q[4].
What is the expected behavior?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
add visualization of open controlled gates [mpl drawer] · Issue ...
ewinston says in #3864: In PR #3739, open controlled gates were implemented. With that PR a new keyword argument was added to specify...
Read more >Visualizing a Quantum Circuit - Qiskit
A text output is useful for quickly seeing the output while developing a circuit, but it doesn't provide the most flexibility in its...
Read more >Build, edit, and inspect quantum circuits
To visualize the state of all qubits at any point in your circuit, drag the phase disk icon from the operations catalog and...
Read more >Stepping into World of Quantum Computing: QC Basics With ...
Add gates ; Visualize the circuit; Simulate the experiment; Visualize the results. Step 1: Import Packages. The basic elements needed for your program...
Read more >Code Quality - GitLab Docs
Uses plugins supported by Code Climate, which are free and open source. ... Having proper access control policies mitigates this attack vector by...
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 Free
Top 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
q_0 should be open and q_2 and q_3 closed.
I find very confusing that