C1000-112 無料問題集「IBM Fundamentals of Quantum Computation Using Qiskit v0.2X Developer」
Predict the state vector output of the below quantum circuit?
qc= QuantumCircuit(3)
qc.h(0)
qc.z(0)
qc.x(1)
qc.cx(0,1)
qc.x(2)
qc.cx(1,2)
backend_sv = BasicAer.get_backend('statevector_simulator')
job = execute(qc, backend_sv,shots=1024)
result = job.result()
sv_ev = result.get_statevector(qc)
qc= QuantumCircuit(3)
qc.h(0)
qc.z(0)
qc.x(1)
qc.cx(0,1)
qc.x(2)
qc.cx(1,2)
backend_sv = BasicAer.get_backend('statevector_simulator')
job = execute(qc, backend_sv,shots=1024)
result = job.result()
sv_ev = result.get_statevector(qc)
正解:B
解答を投票する
Which of the following commands will convert the below qasm string stored in the variable qasm_str to the quantum circuit?
OPENQASM 2.0;
include "qelib1.inc";
qreg q[3];
creg c[3];
h q[0];
cx q[0],q[1];
cx q[0],q[2];
barrier q[0],q[1],q[2];
measure q[0] -> c[0];
measure q[1] -> c[1];
measure q[2] -> c[2];
OPENQASM 2.0;
include "qelib1.inc";
qreg q[3];
creg c[3];
h q[0];
cx q[0],q[1];
cx q[0],q[2];
barrier q[0],q[1],q[2];
measure q[0] -> c[0];
measure q[1] -> c[1];
measure q[2] -> c[2];
正解:D
解答を投票する