PostProcStep

PostProcStep#

class pennylane_calculquebec.processing.interfaces.post_proc_step.PostProcStep#

Bases: BaseStep

a base class that represents post-processing steps that apply on quantum circuits’ results

execute(tape, results)

applies processing on a quantum circuit's results after the execution

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

applies processing on a quantum circuit’s results after the execution

Parameters:
  • tape (QuantumTape) – the tape representation of the quantum circuit

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

Returns:

the processed results represented as counts

Return type:

dict[str, int]