PostProcessor#

class pennylane_calculquebec.processing.monarq_postproc.PostProcessor#

Bases: object

a container for post-processing functionalities that should be applied to the results of a circuit

expand_full_measurements(tape, wires)

turns empty measurements to all-wire measurements

get_processor(behaviour_config, circuit_wires)

returns a function that applies the steps contained in the supplied ProcessingConfig

static expand_full_measurements(tape, wires)#

turns empty measurements to all-wire measurements

Parameters:
  • tape (QuantumTape) – the quantum tape from which to expand the measurements

  • wires (list[int]) – wires from the circuit

Returns:

transformed tape

Return type:

QuantumTape

static get_processor(behaviour_config: ProcessingConfig, circuit_wires)#

returns a function that applies the steps contained in the supplied ProcessingConfig

Parameters:
  • behaviour_config (ProcessingConfig) – a processing config to apply

  • circuit_wires (list[int]) – the wires in the circuit