Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
For questions regarding usage, performance, implementation, application or theory related to quantum gates.
0
votes
Why there's an issue when a quantum gate is controlled in the same time by 0 on a qubit and ...
Running your code as it is on IBM Quantum lab:
qreg = QuantumRegister(8)
creg = ClassicalRegister(8)
circuit = QuantumCircuit(qreg,creg)
circuit.draw('mpl',style='iqx',fold=-1)
gives:
and then addin …
3
votes
What goes above this code fragment?
Here's the full code
First make sure you have all libraries installed, like qiskit, matplotlib, pylatexenc
from qiskit import QuantumCircuit
qc = QuantumCircuit(1,1)
qc.h(0)
qc.t(0)
qc.t(0)
qc.barrier …