amazon-braket / amazon-braket-sdk-python

A Python SDK for interacting with quantum devices on Amazon Braket
https://aws.amazon.com/braket/
Apache License 2.0
294 stars 118 forks source link

MeasurementCriteria for readout error to target measurement operations #973

Open yitchen-tim opened 1 month ago

yitchen-tim commented 1 month ago

Describe the feature you'd like Currently, the readout error in noise model only can targets observables result types through ObservableCriteria. This issue proposes to add MeasurementCriteria for applying readout error to circuits without observables result types.

How would this feature be used? Please describe.

noise_model = NoiseModel()
noise_model.add_noise(BitFlip(0.1), MeasurementCriteria(qubits=[0,1,2]))

Describe alternatives you've considered Simply add the readout noise to the end of the circuit. When there are observables, this implementation will add noise before the basis rotation gates, not truly at the end of the circuit.