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

Speeding up rotate_h_with_vqe #40

Merged
merged 1 commit into from
Jun 4, 2024
Merged

Speeding up rotate_h_with_vqe #40

merged 1 commit into from
Jun 4, 2024

Conversation

andrea-pasquale
Copy link
Collaborator

rotate_h_with_vqe was slow when dealing with large number of qubits. The bottleneck seems to be related to circuit.unitary() which computes the unitary transformation implemented by the circuit. To speed up the execution I opted for fusing the circuit before asking for the unitary transformation.
I need to test it to check if everything is working correctly but the speed up is already visible.

@marekgluza
Copy link
Contributor

Thanks!

Another thing is that we need to often use the vqe unitary cf #34 notebooks for the manipulations that we consider for testing things on the states i.e. exposing the vqe unitary out of rotate_h_vqe might be needed down the line?

@MatteoRobbiati MatteoRobbiati merged commit b024d9b into results Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants