qoqo_qiskit_devices

IBM backend for the qoqo quantum toolkit.

devices

IBM Devices

Functions

get_decoherence_on_gate_model(device[, ...])

Gets the DecoherenceOnGateModel qoqo noise model of an IBM device.

get_noise_models(device[, ...])

Get the ContinuousDecoherenceModel and DecoherenceOnGateModel qoqo noise models of an IBMDevice.

set_qiskit_device_information(device[, ...])

Sets a qoqo_qiskit_devices.ibm_devices instance noise info.

qoqo_qiskit_devices.get_decoherence_on_gate_model(device: ModuleType, get_mocked_information: bool = False) DecoherenceOnGateModel[source]

Gets the DecoherenceOnGateModel qoqo noise model of an IBM device.

The paper that relates the gate fidelity to single-qubit damping + dephasing noise is https://journals.aps.org/prl/pdf/10.1103/PhysRevLett.129.150504. The relevant equation is (12). As discussed below it, a heating noise (sigma^+) would contribute similarly as damping noise (sigma^-). By combining all three channels (damping, heating, dephasing), with proper front factors, one can also obtain a relation between depolarising noise and gate fidelity.

Parameters:
  • device (ibm_devices) -- The qoqo_qiskit_devices referencing the IBM device.

  • get_mocked_information (bool) -- Whether the returned information is mocked or not.

Returns:

The qoqo noise model.

Return type:

noise_models.DecoherenceOnGateModel

qoqo_qiskit_devices.get_noise_models(device: ModuleType, get_mocked_information: bool = False) Tuple[ContinuousDecoherenceModel, DecoherenceOnGateModel][source]

Get the ContinuousDecoherenceModel and DecoherenceOnGateModel qoqo noise models of an IBMDevice.

The paper that relates the gate fidelity to single-qubit damping + dephasing noise is https://journals.aps.org/prl/pdf/10.1103/PhysRevLett.129.150504. The relevant equation is (12). As discussed below it, a heating noise (sigma^+) would contribute similarly as damping noise (sigma^-). By combining all three channels (damping, heating, dephasing), with proper front factors, one can also obtain a relation between depolarising noise and gate fidelity.

Parameters:
  • device (ibm_devices) -- The qoqo_qiskit_devices referencing the IBM device.

  • get_mocked_information (bool) -- Whether the returned information is mocked or not.

Returns:

The qoqo noise model.

Return type:

(noise_models.ContinuousDecoherenceModel, noise_models.DecoherenceOnGateModel)

qoqo_qiskit_devices.set_qiskit_device_information(device: ModuleType, get_mocked_information: bool = False) ModuleType[source]

Sets a qoqo_qiskit_devices.ibm_devices instance noise info.

Obtains the device info from qiskit's QiskitRuntimeService and performs the following updates:
  • sets single qubit gate times

  • sets two qubit gate times

Parameters:
  • device (ibm_devices) -- The qoqo_qiskit_devices instance to update.

  • get_mocked_information (bool) -- Whether the returned information is mocked or not.

Returns:

The input instance updated with qiskit's physical device info.

Return type:

ibm_devices