iqm.cirq_iqm.iqm_sampler.IQMResult

Contents

iqm.cirq_iqm.iqm_sampler.IQMResult#

class iqm.cirq_iqm.iqm_sampler.IQMResult(*, params: ParamResolver | None = None, measurements: Mapping[str, ndarray] | None = None, records: Mapping[str, ndarray] | None = None, metadata: ResultMetadata)#

Bases: ResultDict

Stores the results of a quantum circuit execution on an IQM device.

Parameters:
  • params (Optional[cirq.ParamResolver]) – Parameter resolver used for this circuit, if any.

  • measurements (Optional[Mapping[str, np.ndarray]]) – Maps measurement keys to measurement results, which are 2-D arrays of dtype bool. shape == (repetitions, qubits).

  • records (Optional[Mapping[str, np.ndarray]]) – Maps measurement keys to measurement results, which are 3D arrays of dtype bool. shape == (repetitions, instances, qubits).

  • metadata (ResultMetadata) – Metadata for the circuit execution results.

Attributes

Methods