Given this code, which two inserted code fragments result in the state vector represented by this Bloch sphere?
Given this code, which two inserted code fragments result in the state vector represented by this Bloch sphere?
qc = QuantumCircuit(1,1)
# Insert code fragment here
simulator = Aer.get_backend(‘statevector_simulator’)
job = execute(qc, simulator)
result = job.result()
outputstate = result.get_statevector(qc)
plot_bloch_multivector(outputstate)
A . qc.h(0)
B . qc.rx(math.pi / 2, 0)
C . qc.ry(math.pi / 2, 0)
D . qc.rx(math.pi / 2, 0)
qc.rz(-math.pi / 2, 0)
E . qc.ry(math.pi, 0)
Answer: AC
Latest C1000-112 Dumps Valid Version with 250 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Subscribe
Login
0 Comments
Inline Feedbacks
View all comments