Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AerEstimatorV2 fails to execute small circuits transpiled against larger backends #2249

Open
nonhermitian opened this issue Nov 3, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nonhermitian
Copy link
Contributor

Informations

  • Qiskit Aer version: 0.15.1
  • Python version:
  • Operating system:

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

N = 12
qc = QuantumCircuit(N)

qc.x(range(N))
qc.h(range(N))

for kk in range(N // 2, 0, -1):
    qc.ch(kk, kk - 1)
for kk in range(N // 2, N - 1):
    qc.ch(kk, kk + 1)

op = SparsePauliOp('Z'*12)

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

@nonhermitian nonhermitian added the bug Something isn't working label Nov 3, 2024
@gadial gadial self-assigned this Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants