pennylane_calculquebec.processing.steps.readout_error_mitigation.get_calibration_data

pennylane_calculquebec.processing.steps.readout_error_mitigation.get_calibration_data#

pennylane_calculquebec.processing.steps.readout_error_mitigation.get_calibration_data(machine_name, chosen_qubits)#

Build per-qubit 2×2 calibration matrices from benchmark readout fidelities.

Each calibration matrix is:

[[P(0|0),  P(0|1)],
 [P(1|0),  P(1|1)]]

where P(m|p) is the probability of measuring m when the qubit is prepared in state p.

Parameters:
  • machine_name (str) – name of the target machine (e.g. "yamaska")

  • chosen_qubits (list[int]) – qubit indices observed by the circuit

Returns:

one 2×2 calibration matrix per qubit in chosen_qubits

Return type:

list[numpy.ndarray]