|q⟩
Bad Qubits
Play
Quest
Questions
Learn
Playground
☕
← Question Bank
Multiple choice
In Simon's problem, the oracle
f
:
{
0
,
1
}
n
→
{
0
,
1
}
n
f : \{0,1\}^n \to \{0,1\}^n
f
:
{
0
,
1
}
n
→
{
0
,
1
}
n
satisfies the promise
f
(
x
)
=
f
(
y
)
f(x) = f(y)
f
(
x
)
=
f
(
y
)
if and only if
y
=
x
⊕
s
y = x \oplus s
y
=
x
⊕
s
for a secret string
s
s
s
. When
s
s
s
is NOT the all-zeros string, what is the structure of
f
f
f
?
f
f
f
maps exactly
2
n
−
1
2^{n-1}
2
n
−
1
inputs to
0
0
0
and the rest to
s
s
s
f
f
f
is one-to-one (injective): every input gives a distinct output
f
f
f
is constant: every input maps to the same single output
f
f
f
is two-to-one: exactly the pair
{
x
,
x
⊕
s
}
\{x, x \oplus s\}
{
x
,
x
⊕
s
}
maps to the same output for every
x
x
x
Check answer