quantum.gate.QuantumMeasurement class
Package: quantum.gate
Installation Required: This functionality requires MATLAB Support Package for Quantum Computing.
Description
A QuantumMeasurement
object represents the measurement result of a
quantum circuit, either by running the circuit remotely on a quantum device or by simulating
the circuit locally with random sampling. This object contains information about the counts of
all measured states of the n qubits of the circuit.
Creation
Use
run
to run a circuit remotely on a quantum device and fetch the finished task usingfetchOutput
to return aQuantumMeasurement
object.Use
randsample
on aQuantumState
object that represents the quantum state of the qubits of a circuit.randsample
randomly samples this state locally (with a specified number of shots) and returns the measurement result as aQuantumMeasurement
object.
Properties
Methods
Examples
Version History
Introduced in R2023a