:py:mod:`kosmos.circuit_runner.pennylane_runner` ================================================ .. py:module:: kosmos.circuit_runner.pennylane_runner Classes ------- .. py:class:: PennyLaneRunner(device_name: Literal['default.qubit', 'lightning.qubit'] = 'lightning.qubit') Bases: :py:class:`kosmos.circuit_runner.circuit_runner.CircuitRunner` Runner for PennyLane. Initialize the PennyLane runner. :param device_name: Name of the PennyLane device. Defaults to "lightning.qubit". :type device_name: Literal["default.qubit", "lightning.qubit"] | .. rubric:: Properties .. py:property:: framework The framework used by the circuit runner. | .. rubric:: Methods .. py:method:: configure_qnode(num_wires: int, circuit: collections.abc.Callable[Ellipsis, Any]) -> None Configure the QNode for a given circuit. :param num_wires: Number of wires (qubits) in the circuit. :type num_wires: int :param circuit: Callable defining the quantum circuit. :type circuit: Callable[..., Any] .. py:method:: execute(*args: Any, **kwargs: Any) -> Any Execute the configured QNode with the given arguments. :param \*args: Positional arguments passed to the underlying QNode. :type \*args: Any :param \*\*kwargs: Keyword arguments passed to the underlying QNode. :type \*\*kwargs: Any :returns: The result returned by the QNode. :rtype: Any