qnode_to_meta¶
- qnode_to_meta(qnode, *, arg_shapes=None, precision=8)[source]¶
Convert a
QNodedirectly to aMetaCircuit.Traces the QNode into a symbolic
QuantumScript(trainable arguments seeded with sympy symbols) and appliesqscript_to_meta(). Thearg_shapesmapping declares per-argument shapes for multi-argument and structured-shape circuits whose shapes can’t be inferred automatically.- Return type: