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

Give FakeOpenPulse2Q qubit T2 times and readout errors #7425

Merged
merged 2 commits into from
Jan 4, 2022

Conversation

jakelishman
Copy link
Member

Summary

It had some properties, but didn't have the full set. This meant that
things like the T2 times weren't filled in by the defaults, so trying to
access the T2 times of any qubits was an error. The values chosen here
are unimportant; in this case they were simply drawn from a linear
regression of all T1 times against T2 times. The readout errors were
just a reasonable value.

Details and comments

Aer 0.10's noise model tries to read T1 and T2 times for all qubits, which causes test failures for us due to the missing properties. I would have expected that a missing property would return 0, but that's probably pretty dangerous behaviour and I don't want to mess around in the BackendProperties class much because I don't know the context. Instead I've just given FakeOpenPulse2q some arbitrary T2 times and readout errors, since it feels like it should know those anyway.

We can also patch the Aer NoiseModel to treat missing T1/T2 times as 0.

@jakelishman jakelishman requested a review from a team as a code owner December 17, 2021 11:10
It had some properties, but didn't have the full set.  This meant that
things like the T2 times weren't filled in by the defaults, so trying to
access the T2 times of any qubits was an error.  The values chosen here
are unimportant; in this case they were simply drawn from a linear
regression of all T1 times against T2 times.  The readout errors were
just a reasonable value.
@jakelishman jakelishman force-pushed the fix/fake-openpulse2q-t2 branch from 32fb2a6 to c20590b Compare December 17, 2021 11:13
@jakelishman jakelishman added the Changelog: Bugfix Include in the "Fixed" section of the changelog label Dec 17, 2021
@jakelishman jakelishman added this to the 0.19.2 milestone Dec 17, 2021
@jakelishman jakelishman added the stable backport potential The bug might be minimal and/or import enough to be port to stable label Dec 17, 2021
@jakelishman
Copy link
Member Author

(needs to be backported if we accept it, so that the backport branch doesn't have broken tests with Aer 0.10)

@coveralls
Copy link

coveralls commented Dec 17, 2021

Pull Request Test Coverage Report for Build 1654856234

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.005%) to 83.112%

Files with Coverage Reduction New Missed Lines %
qiskit/pulse/library/waveform.py 3 89.36%
Totals Coverage Status
Change from base Build 1654852684: -0.005%
Covered Lines: 51941
Relevant Lines: 62495

💛 - Coveralls

@mergify mergify bot merged commit 2867f20 into Qiskit:main Jan 4, 2022
mergify bot pushed a commit that referenced this pull request Jan 4, 2022
It had some properties, but didn't have the full set.  This meant that
things like the T2 times weren't filled in by the defaults, so trying to
access the T2 times of any qubits was an error.  The values chosen here
are unimportant; in this case they were simply drawn from a linear
regression of all T1 times against T2 times.  The readout errors were
just a reasonable value.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 2867f20)
mergify bot added a commit that referenced this pull request Jan 4, 2022
It had some properties, but didn't have the full set.  This meant that
things like the T2 times weren't filled in by the defaults, so trying to
access the T2 times of any qubits was an error.  The values chosen here
are unimportant; in this case they were simply drawn from a linear
regression of all T1 times against T2 times.  The readout errors were
just a reasonable value.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 2867f20)

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
@jakelishman jakelishman deleted the fix/fake-openpulse2q-t2 branch January 10, 2022 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants