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

Added missing had_transpiled=True to quantum_kernel #247

Merged
merged 4 commits into from
Oct 20, 2021

Conversation

cnktysz
Copy link
Contributor

@cnktysz cnktysz commented Oct 20, 2021

Summary

Circuits are being transpiled in quantum_kernel.py but the necessary had_transpiled=True flag is not being passed when the circuits are being executed. This makes the transpilation operation re-run many times and this slows down the QSVM algorithm.

Details and comments

A test with the IRIS dataset is performed for 10 data samples from 2 classes is performed. Run times are given below:

Before the change: 55.0 seconds
After the change: 5.56 seconds

@CLAassistant
Copy link

CLAassistant commented Oct 20, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@adekusar-drl adekusar-drl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks!

@adekusar-drl adekusar-drl merged commit 7f7bde7 into qiskit-community:main Oct 20, 2021
gentinettagian pushed a commit to gentinettagian/qiskit-machine-learning that referenced this pull request Dec 14, 2021
…#247)

* Added missing had_transpiled=True

* added missing reno file

* add missing words

* fix typo
@manoelmarques manoelmarques added the QAMP Qiskit Advocate Mentorship Program label Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QAMP Qiskit Advocate Mentorship Program
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants