Issue
-
transpiler.py:149-240 — No validation for empty circuits, circuits with 0 qubits, or None inputs. Passing None causes obscure errors deep in the pipeline.
-
autotuning.py:44-70 — Users can set optimization_level=5, routing_method='invalid', or seed=-1 with no error. These fail only at Qiskit transpile time with unclear errors.
Fix
Add __post_init__ validation for TranspileConfig parameter ranges, and early validation in QCompiler.optimize() for circuit validity.
Issue
transpiler.py:149-240— No validation for empty circuits, circuits with 0 qubits, or None inputs. Passing None causes obscure errors deep in the pipeline.autotuning.py:44-70— Users can setoptimization_level=5,routing_method='invalid', orseed=-1with no error. These fail only at Qiskit transpile time with unclear errors.Fix
Add
__post_init__validation for TranspileConfig parameter ranges, and early validation in QCompiler.optimize() for circuit validity.