Q26.Deutsch Oracle: Constant-1 Function f(x) = 1
Quantum ParallelismQubits: 2Q
Implement Deutsch algorithm for oracle , which applies an unconditional bit-flip (Pauli-X) on the ancilla qubit.
Target Objective:
Prepare ancilla in , put in , apply Pauli-X on as the oracle, and apply Hadamard on to measure with 100% probability.
Judge Acceptance Criteria:
Measurement probability for designated basis state must reach ≥ 95%.
Gates:
q[0]|0⟩
S0
S1
S2
S3
S4
S5
S6
S7
q[1]|0⟩
S0
S1
S2
S3
S4
S5
S6
S7
Live Python / Qiskit Code (Edit to Update Circuit)
Type Qiskit Python code above to update gates on wires automatically0 gates · 2Q
0 gates placed2 Qubits · 8 Steps
State Measurement Distribution:4 non-zero basis states
|10⟩0.0%
|11⟩0.0%
|00⟩100.0%
|01⟩0.0%