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

Optimise code for when noise_model = None #6

Open
garymooney opened this issue Feb 6, 2023 · 0 comments
Open

Optimise code for when noise_model = None #6

garymooney opened this issue Feb 6, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@garymooney
Copy link
Owner

Currently, the quantum simulator always simulates and samples the density matrices of the circuits twice. The first with no noise model for the exact values and then again with the noise model for the noise information. If the noise model is None, the intention is to process the circuit and render the qMuVi without including any noise information.

At the moment, if the noise model is None, both simulations are still computed, where the second has an empty noise model. The second simulation is redundant, so it can be removed in this case. Also, a full density matrix simulation does not need to be computed when there is no noise, a statevector is sufficient. Sample the statevectors instead of the density matrices and use statevectors throughout to save memory, enabling larger circuits to be computed.

Implement any other related optimisations that might be found on the way.

@garymooney garymooney added enhancement New feature or request good first issue Good for newcomers labels Feb 6, 2023
@garymooney garymooney removed the good first issue Good for newcomers label Mar 2, 2023
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