diff --git a/pr-2216/api/languages/python_api.html b/pr-2216/api/languages/python_api.html index 487fca39dd..eebb272a1d 100644 --- a/pr-2216/api/languages/python_api.html +++ b/pr-2216/api/languages/python_api.html @@ -2127,7 +2127,7 @@
Return a random SpinOperator
on the given number of qubits (qubit_count
) and composed of the given number of terms (term_count
). An optional seed value may also be provided.
Suppose we have \(f(x): \{0,1\} \longrightarrow \{0,1\}\). We can compute this function on a quantum computer using oracles which we treat as black box functions that yield the output with an appropriate sequence of logic gates.
Above you see an oracle represented as \(U_f\) which allows us to transform the state \(\ket{x}\ket{y}\) into:
Our aim is to find out if \(f: \{0,1\} \longrightarrow \{0,1\}\) is a constant or a balanced function? If constant, \(f(0) = f(1)\), and if balanced, \(f(0) \neq f(1)\).
We step through the circuit diagram below and follow the math after the application of each gate.
- +