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

Performance regression from 0.11.2 to 0.12.0 #1746

Closed
hhorii opened this issue Mar 14, 2023 · 0 comments · Fixed by #1747
Closed

Performance regression from 0.11.2 to 0.12.0 #1746

hhorii opened this issue Mar 14, 2023 · 0 comments · Fixed by #1747
Assignees
Labels
bug Something isn't working

Comments

@hhorii
Copy link
Collaborator

hhorii commented Mar 14, 2023

Informations

  • Qiskit Aer version: 0.12.0
  • Python version: 3.9
  • Operating system: MacOS

What is the current behavior?

Performance degradation due to #1717 is happened in 0.12.0.

#1717 provides pybind for AER::Config. This class will help simulation of circuits that use param_binds (such as in Primitive), but not for general circuits. AER::Config lists all items for configuration even though which are not used in a specified simulation method.

Steps to reproduce the problem

Run circuits with small qubits.

image

The above results were measured with following codes:

from time import time
from qiskit import QuantumCircuit, transpile
from qiskit_aer import AerSimulator
from qiskit.circuit.library import QuantumVolume

backend = AerSimulator(method='statevector')

print('num_qubits, iteration, elapsed')
for num_qubits in range(3, 15):
	circ = QuantumVolume(num_qubits)
	circ.measure_all()
	circ = transpile(circ, backend)
	
	start_ts = time()
	for j in range(100):
		ret = backend.run(circ).result()
	elapsed = time() - start_ts
	print(num_qubits, 100, elapsed)

What is the expected behavior?

No regression.

Suggested solutions

Not list all configuration items.

@hhorii hhorii added the bug Something isn't working label Mar 14, 2023
@hhorii hhorii self-assigned this Mar 14, 2023
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

Successfully merging a pull request may close this issue.

1 participant