qmiotools.integrations.qiskitqmio.FakeQmio

qmiotools.integrations.qiskitqmio.FakeQmio(calibration_file: Optional[str] = None, thermal_relaxation: bool = True, temperature: float = 0, gate_error: bool = False, readout_error: bool = False, logging_level: int = 0, logging_filename: Optional[str] = None, **kwargs) qiskit_aer.AerSimulator

Create a Fake backend for Qmio that uses the last calibrations and AerSimulator.

Parameters
  • calibration_file (str) – A path to a valid calibration file. If the path is None (default), the last calibration is loaded.

  • thermal_relaxation (bool) – If True, the noise model will include the thermal relaxation using the data from the calibration. Default: True

  • temperature (float) – the temperature in mK. If it is different of 0 (default). This is equivalent temperature used to calculate the probability of being |1> due to thermal effects. See publication arxiv:1412.2772. This temperature is passed to AerSimulator, that initially set it equally for all qubits, despite that could be different.

  • gate_error (bool) – Flag to include (True) or not (False. Default option) the gate errors in the model.

  • readout_error (bool) – Flag to include (True) or not (False. Default) the readout error from the calibrations file.

  • logging_level (int) – flag to indicate the logging level. Better if use the logging package levels. Default logging.NOTSET

  • logging_filename (str) – Path to store the logging messages. Default None, i.e., output in stdout

  • **kwargs – other parameters to pass directly to qiskit_aer.AerSimulator

Returns

A valid backend including the defined noise model.

Return type

AerSimulator

Raises

QmioException – if the configuration file could not be found.