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

The stabilizer simulator could have some quantum gates operations improved #2257

Open
aromanro opened this issue Nov 15, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@aromanro
Copy link
Contributor

aromanro commented Nov 15, 2024

Informations

  • Qiskit aer version: Latest development version
  • OS: Windows, linux, macosx

What is the current behavior?

Currently some gate operations are done by combining several other gate operations. For example, the swap is done by using three cx operations. There is nothing wrong with that functionally, of course, but instead of going separately with each over all stabilizers & destabilizers, a single loop could apply all such operations. This should increase the speed a little due of cache locality.

What is the expected behavior?

Something like this implementation I've done: https://github.com/aromanro/QCSim/blob/4b2589cb50e2724fbd2da2b18c57001595b3f3f8/QCSim/Clifford.h#L288

Currently aer is doing this:


which results in three loops over the stabilizers & destabilizers.

This is only an example, there are many gate operations that could be changed like that.

@aromanro aromanro added the enhancement New feature or request label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant