Qiskit Practice
EXAM C1000-1000 (Difficult) 68 questions

Qiskit v2.x mock exam

Select one answer per question. Submit to see the explanation.

Question 04 / 68
A diagonal gate is inserted between two H gates on q₀. What state, including its complex amplitude, results from starting at |10⟩?
qc = QuantumCircuit(2)
qc.h(0)
qc.append(DiagonalGate([1, 1, 1j, -1j]), [0, 1])
qc.h(0)