Closed yitchen-tim closed 1 month ago
I am asking to work on this issue for uhack me and my teammate @Tatgithub02
@yitchen-tim I went over the code base, seems like an interesting problem, can you elobrate more on this ? Do you want me to implement the count method from qml or ??
HI @anushkrishnav , thanks for the interest in contributing. When using Braket backend such as Braket local simulator, the qml.counts()
throws error. I have updated the full code in the description that reproduces the error. So yes, this issue is about adding support of returning counts to Braket backends.
For more examples about using Braket backends in pennylane, you can refer to the example notebooks in here.
Hi, I would also like to work on this issue for the unitaryhack.
Describe the feature you'd like
qml.counts
is already supported for AHS programs. There is a great value in makingqml.counts
available for circuits.How would this feature be used? Please describe.
returning measurement counts.
Describe alternatives you've considered Today, users has to change their circuit to use a Braket supported return type such as
qml.expval(qml.PauliZ(0))
and then do
Users could not use the same circuit to first test on a pennylane simulator before running on a Braket QPU. Also, users do not want to know
qml.expval(qml.PauliZ(0))
, they just use it to get the circuit to run, so that they can get the measurement_counts stored in the plugin device. Furthermore, when usingbatch_execute
,test_circ.device.task
is empty. Users need to go to console and find the results of the tasks they submitted.