Main Content
observe
Installation Required: This functionality requires MATLAB Support Package for Quantum Computing.
Description
specifies options using one or more name-value arguments in addition to any of the input
argument combinations in previous syntaxes. For example, to sample the circuit 100 times,
set ev
= observe(___,Name=Value
)NumShots
to 100
.
Examples
Input Arguments
Output Arguments
Tips
The expected value represents the average measurement result and is fundamental to many quantum algorithms. You can use the
observe
function to compute exact or approximate expected values.
Version History
Introduced in R2024b