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
AerEstimatorV2 gives memory error when trying to execute small circuits that have been transpiled against larger backends. Essentially it is the same issue as #2084
Steps to reproduce the problem
Try this circuit and operator transpiled against an Eagle machine
QiskitError: 'ERROR: [Experiment 0] Insufficient memory to run circuit circuit-205 using the statevector simulator. Required memory: 18446744073709551615M, max memory: 127903M , ERROR: Insufficient memory to run circuit circuit-205 using the statevector simulator. Required memory: 18446744073709551615M, max memory: 127903M'
But the active number of qubits is only 12
What is the expected behavior?
The simulation should work if the number of active qubits is small enough to fit in memory
Suggested solutions
The text was updated successfully, but these errors were encountered:
If I understand correctly, the current solution for transpiling against large backends is present only in Estimator (not in EstimatorV2) and is simply copying the number of qubits from the circuit prior to its transpilation.
This is irrelevant for a use case as in the example above, where the circuit is transpiled and only afterwards sent to the simulator (with its qubit number now listed as 127).
@nonhermitian, am I getting this right? In this case Aer has to actively go over the circuit and count the number of qubits used in practice, correct?
The root issue is that the number of qubits that needs to be simulated is the number of active qubits in the circuit. As in the example here, this need not equal the total number of device in a transpiled circuit. The Aer backend.run interface will perform this truncation, so the primitives should as well.
Informations
What is the current behavior?
AerEstimatorV2 gives memory error when trying to execute small circuits that have been transpiled against larger backends. Essentially it is the same issue as #2084
Steps to reproduce the problem
Try this circuit and operator transpiled against an Eagle machine
I currently get
QiskitError: 'ERROR: [Experiment 0] Insufficient memory to run circuit circuit-205 using the statevector simulator. Required memory: 18446744073709551615M, max memory: 127903M , ERROR: Insufficient memory to run circuit circuit-205 using the statevector simulator. Required memory: 18446744073709551615M, max memory: 127903M'
But the active number of qubits is only 12
What is the expected behavior?
The simulation should work if the number of active qubits is small enough to fit in memory
Suggested solutions
The text was updated successfully, but these errors were encountered: