MatrixReadoutMitigation#

class pennylane_calculquebec.processing.steps.readout_error_mitigation.MatrixReadoutMitigation(machine_name: str)#

Bases: PostProcStep

a post-processing step that applies error mitigation based on the readout fidelities

constructor for the mitigation step

Parameters:

machine_name (str) – the name of the machine. Usually either yukon or yamaska

execute(tape, results)

mitigates readout errors from results using state 0 and 1 readouts

execute(tape: QuantumTape, results: dict[str, int])#

mitigates readout errors from results using state 0 and 1 readouts

Parameters:
  • tape (QuantumTape) – the origin tape

  • results (dict[str, int]) – the results of the executed tape represented as counts

Returns:

The resulting tape

Return type:

dict[str, int]