observe
Description
Add-On Required: This feature requires the MATLAB Support Package for Quantum Computing add-on.
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
Name-Value Arguments
Output Arguments
Tips
The expected value represents the average measurement result and is fundamental to many quantum algorithms. You can use the
observefunction to compute exact or approximate expected values.
References
[1] Beeumen, Roel Van, Daan Camps, and Neil Mehta. “QCLAB++: Simulating Quantum Circuits on GPUs.” Preprint, submitted February 28, 2023. https://doi.org/10.48550/arXiv.2303.00123.