This solves the bug detailed in Issue #130 where translating a circuit in qiskit to braket returned all the measurements instead of the requested measured qubit.
Details and comments
Now, users can measure a subset of qubits on local simulators or any device that supports partial measurement.
Summary
Add support for Braket's
measure
instruction.This solves the bug detailed in Issue #130 where translating a circuit in qiskit to braket returned all the measurements instead of the requested measured qubit.
Details and comments
Now, users can measure a subset of qubits on local simulators or any device that supports partial measurement.
Example:
{'1': 518, '0': 506}
To keep the current functionality of the bug and measure all the qubits, simply change
measure(0, 0)
tomeasure_all()
{'00': 503, '11': 521}
List of changes
measure
to the Braket gatesmeasure