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

class MockIQBackend(experiment_helper=None, rng_seed=0)[source]

A mock backend for testing with IQ data.

Initialize the backend.

Parameters:
  • experiment_helper (MockIQExperimentHelper) – Experiment helper class that contains ‘compute_probabilities’ function and ‘iq_phase’ function for the backend to execute.

  • rng_seed (int) – The random seed value.

Attributes

MockIQBackend.coupling_map

Return the CouplingMap object

MockIQBackend.dt

Return the system time resolution of input signals

MockIQBackend.dtm

Return the system time resolution of output signals

MockIQBackend.experiment_helper

return the 'experiment_helper' attribute

MockIQBackend.instruction_durations

Return the InstructionDurations object.

MockIQBackend.instruction_schedule_map

Return the InstructionScheduleMap for the instructions defined in this backend's target.

MockIQBackend.instructions

A list of Instruction tuples on the backend of the form (instruction, (qubits)

MockIQBackend.max_circuits

The maximum number of circuits (or Pulse schedules) that can be run in a single job.

MockIQBackend.meas_map

Return the grouping of measurements which are multiplexed This is required to be implemented if the backend supports Pulse scheduling.

MockIQBackend.num_qubits

Return the number of qubits the backend has.

MockIQBackend.operation_names

A list of instruction names that the backend supports.

MockIQBackend.operations

A list of Instruction instances that the backend supports.

MockIQBackend.options

Return the options for the backend

MockIQBackend.provider

Return the backend Provider.

MockIQBackend.target

A qiskit.transpiler.Target object for the backend.

MockIQBackend.version

Methods

MockIQBackend.acquire_channel(qubit)

Return the acquisition channel for the given qubit.

MockIQBackend.control_channel(qubits)

Return the secondary drive channel for the given qubit

MockIQBackend.drive_channel(qubit)

Return the drive channel for the given qubit.

MockIQBackend.measure_channel(qubit)

Return the measure stimulus channel for the given qubit.

MockIQBackend.qubit_properties(qubit)

Return QubitProperties for a given qubit.

MockIQBackend.run(run_input, **run_options)

Run the IQ backend.

MockIQBackend.set_options(**fields)

Set the options fields for the backend