iqm.cirq_iqm.iqm_sampler.IQMResult

Contents

iqm.cirq_iqm.iqm_sampler.IQMResult#

class iqm.cirq_iqm.iqm_sampler.IQMResult(*, params=None, measurements=None, records=None, metadata)#

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.

Inits Result.

Parameters:
  • params (Optional[cirq.ParamResolver]) – A ParamResolver of settings used for this result.

  • measurements (Optional[Mapping[str, np.ndarray]]) – A dictionary from measurement gate key to measurement results. The value for each key is a 2-D array of booleans, with the first index running over the repetitions, and the second index running over the qubits for the corresponding measurements.

  • records (Optional[Mapping[str, np.ndarray]]) – A dictionary from measurement gate key to measurement results. The value for each key is a 3D array of booleans, with the first index running over the repetitions, the second index running over “instances” of that key in the circuit, and the last index running over the qubits for the corresponding measurements.

  • metadata (ResultMetadata) –

Attributes

Methods