HF RL Explorer

QuantumCircuit. check dup param spec becomes slow for many gates reusing few parameters

QuantumCircuit. check dup param spec becomes slow for many gates reusing few parameters: a task in swe-rebench-v2.1-rl-isolated-1k: SWE-rebench V2.1 RL, isolated grading (1k subset) (Harbor dataset). When building a parameterized circuit where a large number of gates re-use a comparatively small…

The task

When building a parameterized circuit where a large number of gates re-use a comparatively small number of parameters, `QuantumCircuit._check_dup_param_spec` becomes a performance bottleneck.

Part of rycerzes/swe-rebench-v2.1-rl-isolated-1k.