Routing#
- class pennylane_calculquebec.processing.steps.routing.Routing(machine_name: str, use_benchmark=True, q1_acceptance=0.5, q2_acceptance=0.5, excluded_qubits=[], excluded_couplers=[])#
Bases:
PreProcStepbase class for routing algorithms
constructor for usual routing algorithms
- Parameters:
use_benchmark (bool, optional) – should we use benchmarks during placement? Defaults to True.
q1_acceptance (float, optional) – what is the level of acceptance for state 1 readout? Defaults to 0.5.
q2_acceptance (float, optional) – what is the level of acceptance for cz fidelity? Defaults to 0.5.
excluded_qubits (list, optional) – what qubits should we exclude from the mapping? Defaults to [].
excluded_couplers (list, optional) – what couplers should we exclude from the mapping? Defaults to [].
Methods
execute(tape)applies processing on a quantum circuit's results after the execution
- execute(tape: QuantumTape)#
applies processing on a quantum circuit’s results after the execution
- Parameters:
tape (QuantumTape) – the tape representation of the quantum circuit
- Returns:
the processed tape
- Return type:
QuantumTape