loom.executor.eka_circuit_to_pennylane_converter
Copyright (c) Entropica Labs Pte Ltd 2025.
Use, distribution and reproduction of this program in its source or compiled form is prohibited without the express written consent of Entropica Labs Pte Ltd.
- loom.executor.eka_circuit_to_pennylane_converter.MEASUREMENT_OPERATIONS_MAP(is_catalyst)
- loom.executor.eka_circuit_to_pennylane_converter.RESET_OPERATIONS_MAP(is_catalyst)
- loom.executor.eka_circuit_to_pennylane_converter.convert_circuit_to_pennylane(input_circuit, is_catalyst)[source]
Converts an EKA circuit to a PennyLane circuit. The PennyLane circuit is returned as a function that can be called to execute the circuit.
- Parameters:
input_circuit (Circuit) – The EKA circuit to be converted.
is_catalyst (bool) – If True, the Catalyst measurement operation and cond will be used. Otherwise, the PennyLane ones will be used.
- Return type:
tuple[Callable,dict]- Returns:
Callable – A function that can be called to execute the PennyLane circuit. Can only be used within the @qjit decorator.
dict – A dictionary containing the qubit register of the PennyLane circuit.