After #2559, we have a more informative error,
import pennylane as qml
from catalyst import *
null_dev = qml.device("null.qubit", wires=1)
@qjit
@qml.transforms.gridsynth(ppr_basis=True)
@qml.qnode(null_dev)
def circuit():
qml.RZ(1,1)
return qml.probs()
fig, ax = draw_graph(circuit)()
VisualizationError: Calls to functions without a definition are not yet compatible with 'draw_graph'. Found external function call to rs_decomposition_get_phase.
However, upon further discussion, these empty external functions shouldn't be the blockers for visualization of gridsynth pass. Instead, we should just skip visualizing empty functions and let the program continue.
sc-114575
After #2559, we have a more informative error,
However, upon further discussion, these empty external functions shouldn't be the blockers for visualization of
gridsynthpass. Instead, we should just skip visualizing empty functions and let the program continue.sc-114575