Note

This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.

MockIQBackend.run

MockIQBackend.run(run_input, **run_options)[source]

Run the IQ backend.

Parameters:
  • run_input (List[QuantumCircuit]) – A list of QuantumCircuit for which the backend will generate data.

  • **run_options

    Experiment running options. The options that are supported in this backend are meas_level, meas_return and shots:

    • meas_level: To generate data in the IQ plane, meas_level should be assigned 1 or MeasLevel.KERNELED. If meas_level is 2 or MeasLevel.CLASSIFIED, the generated data will be in the form of counts.

    • meas_return: This option will only take effect if meas_level = MeasLevel.CLASSIFIED. It can get either MeasReturnType.AVERAGE or MeasReturnType.SINGLE. For MeasReturnType.SINGLE, the data of each shot will be stored in the result. For MeasReturnType.AVERAGE, an average of all the shots will be calculated and stored in the result.

    • shots: The number of times the circuit will run.

Returns:

A job that contains the simulated data.

Return type:

FakeJob

Raises:

QiskitError – Raised if the user try to run the experiment without setting a helper.