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

It should be possible to get the two independent readout error rates from a Target object #1672

Open
nonhermitian opened this issue May 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nonhermitian
Copy link
Contributor

What is the expected feature or enhancement?

It is possible to grab the two independent readout error rates from the backend.properties:

props = backend.properties()
P01 = props.qubit_property(0, 'prob_meas0_prep1')[0]
P10 = props.qubit_property(0, 'prob_meas1_prep0')[0]

It would be nice if this information was included in the backend.target so that (at least in this instance) users can get all information from a single object.

Acceptance criteria
The 2 readout error rates are in the Target

@nonhermitian nonhermitian added the enhancement New feature or request label May 10, 2024
@mtreinish
Copy link
Member

For reference the pattern to do this is to make a custom InstructionProperties subclass that extends it with custom properties for a given backend. There is an example of how to do this in qiskit's unit tests here:

https://github.com/Qiskit/qiskit/blob/fe275a0f15132073c6b5afb0c4be8bcc351479cb/test/python/transpiler/test_target.py#L1015-L1028

This is similar to what is already done for QubitProperties here:

class IBMQubitProperties(QubitProperties):
which adds anharmonicity and a boolean for the operational state for each qubit in the target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants