Skip to main content
Problem List
Q31.Bernstein-Vazirani 2-Bit Hidden String s = "01"PremiumHard

Q31.Bernstein-Vazirani 2-Bit Hidden String s = "01"Premium Question

Quantum ParallelismQubits: 3Q
Find the secret 2-bit string s=01s = 01 with a single quantum query on 3 qubits (q0q_{0}, q1q_{1} inputs, q2q_{2} ancilla).
Target Objective:
Prepare q2q_{2} in |-\rangle, put q0q_{0},q1q_{1} in +|+\rangle, apply CNOT(1->2) for s1=1s_1=1, and decode with Hadamards on q0q_{0},q1q_{1} to measure 011.
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
q[2]|0⟩
S0
S1
S2
S3
S4
S5
S6
S7
Click slot to place selected gate. Right-click to remove.0 gates in circuit
Click "Submit" in the top bar to run automated test cases against your circuit.