You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling QuantumCircuit.bind_parameters can have drastically different performance depending on whether or not the circuit contains wrapped instructions. For example, comparing the time to build and bind parameters for an EfficientSU2 circuit, where in the first case, we call bind_parameters directly on EfficientSU2, and in the second, after unwrapping EfficientSU2 via a call to decompose:
What should we add?
Calling
QuantumCircuit.bind_parameters
can have drastically different performance depending on whether or not the circuit contains wrapped instructions. For example, comparing the time to build and bind parameters for anEfficientSU2
circuit, where in the first case, we callbind_parameters
directly onEfficientSU2
, and in the second, after unwrappingEfficientSU2
via a call todecompose
:Related to #10269 . During profiling @mtreinish found most of the time for the wrapped case spent in recursive calls to https://github.com/Qiskit/qiskit-terra/blob/main/qiskit/circuit/quantumcircuit.py#L2933-L2944 .
The text was updated successfully, but these errors were encountered: