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

Support Parametric Circuits #96

Merged
merged 6 commits into from
Jun 1, 2023

Conversation

king-p3nguin
Copy link
Contributor

Summary

Details and comments

@kshitijc
Copy link
Collaborator

Thank you for this PR @king-p3nguin! Could you please make updates to:

  • Ensure that the failing checks succeed
  • Add unit tests for the changes made in the source code

@king-p3nguin
Copy link
Contributor Author

king-p3nguin commented May 30, 2023

Thank you for the review! After fixing the bug, I ran tests locally, and everything appeared to be functioning correctly.

Copy link
Collaborator

@kshitijc kshitijc left a comment

Choose a reason for hiding this comment

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

Thanks for the updates! A couple of minor comments

tests/providers/test_adapter.py Outdated Show resolved Hide resolved
qiskit_circuit.rz(theta, 0)
braket_circuit = convert_qiskit_to_braket_circuit(qiskit_circuit)

braket_circuit_ans = Circuit().rz( # pylint: disable=no-member
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we extend the test to include more complex gates like U3 and also mix parametric and non parametric gates?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I noticed that the .u3 method is currently unavailable for QuantumCircuit. As a solution, I included UGate in the dictionary. Would this be acceptable?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, thank you!

king-p3nguin and others added 2 commits June 1, 2023 16:29
Co-authored-by: Kshitij Chhabra <kshitijc@users.noreply.github.com>
Copy link
Collaborator

@kshitijc kshitijc left a comment

Choose a reason for hiding this comment

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

Great work @king-p3nguin! Thank you for this contribution! 🙌

@kshitijc kshitijc merged commit 6c3cc1f into qiskit-community:main Jun 1, 2023
@king-p3nguin king-p3nguin deleted the pr-support-params branch June 1, 2023 20:36
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.

Support for Parametric Circuits
2 participants