Skip to content

Commit

Permalink
Merge branch 'main' into remove-grover-decompose
Browse files Browse the repository at this point in the history
  • Loading branch information
rathishcholarajan committed May 15, 2022
2 parents 0ca3eeb + c00be0a commit ede29f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"\n",
"### Expectation value of a diagonal operator\n",
"\n",
"Consider a generic observable given by the tensor product of diagonal operators over $N$ qubits $O = O_{N-1}\\dots O_{0}$ where the subscript indicates the qubit on which the operator acts. Then for a set of observed $M$ bitstrings $\\{b_{0}, \\dots b_{M-1}\\}$, where $M \\leq 2^N $, with corresponding approximate probabilites $p_{m}$ the expectation value is given by\n",
"Consider a generic observable given by the tensor product of diagonal operators over $N$ qubits $O = O_{N-1}\\dots O_{0}$ where the subscript indicates the qubit on which the operator acts. Then for a set of observed $M$ bitstrings $\\{b_{0}, \\dots b_{M-1}\\}$, where $M \\leq 2^N $, with corresponding approximate probabilities $p_{m}$ the expectation value is given by\n",
"\n",
"$$\n",
"\\langle O\\rangle \\simeq \\sum_{m=0}^{M-1} p_{m}\\prod_{n=0}^{N-1}O_{n}[b_{m}[N-n-1], b_{m}[N-n-1]],\n",
Expand Down
4 changes: 2 additions & 2 deletions qiskit_ibm_runtime/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Sampler(BaseSampler):
The default level is ``WARNING``.
The returned instance can be called repeatedly with the following parameters to
calculate probabilites or quasi-probabilities.
calculate probabilities or quasi-probabilities.
* circuit_indices: A list of circuit indices.
Expand Down Expand Up @@ -185,7 +185,7 @@ def __call__(
] = None,
**run_options: Any,
) -> SamplerResult:
"""Calculates probabilites or quasi-probabilities for given inputs in a runtime session.
"""Calculates probabilities or quasi-probabilities for given inputs in a runtime session.
Args:
circuit_indices: A list of circuit indices.
Expand Down

0 comments on commit ede29f5

Please sign in to comment.