qiskit-community / qiskit-braket-provider

Qiskit-Braket provider to execute Qiskit programs on quantum computing hardware devices through Amazon Braket.
https://qiskit-community.github.io/qiskit-braket-provider/
Apache License 2.0
58 stars 45 forks source link

Support for Parametric Circuits #86

Closed kshitijc closed 1 year ago

kshitijc commented 1 year ago

What is the expected behavior?

Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

A parametric Qiskit circuit should be converted to a Braket parametric circuit. Currently, trying to convert a Qiskit parametric circuit to a Braket circuit like so:

from qiskit_braket_provider.providers.adapter import convert_qiskit_to_braket_circuit
from qiskit.circuit import Parameter

theta = Parameter('θ')
qc = QuantumCircuit(1, 1)
qc.rz(theta, 0)

yields the following error:

TypeError: ParameterExpression with unbound parameters ({Parameter(θ)}) cannot be cast to a float.

Expected outcome: This should return a Braket circuit with Rz gate and FreeParameter θ

urihan commented 1 year ago

Hello, I would like to work on this issue! Thank you

king-p3nguin commented 1 year ago

I'm also interested in working on this issue as part of the Unitary Hack. Can I be assigned to this challenge? Thank you!

natestemen commented 1 year ago

@kshitijc this bounty is showing as completed by @urihan, but it looks like it was completed by @king-p3nguin. Please ensure the hacker who has been responsible to the issue being resolved is assigned to the issue. Thanks!

JordanAWS commented 1 year ago

@natestemen Just updated. Could you update the UnitaryHack website to reflect @king-p3nguin as the bounty closer? https://unitaryhack.dev/projects/qiskit-braket-provider/