Skip to content

Change to truncate T2 up to 2 * T1 in NoiseModel.from_backend#1467

Merged
hhorii merged 9 commits into
Qiskit:mainfrom
itoko:fix-1464
Mar 7, 2022
Merged

Change to truncate T2 up to 2 * T1 in NoiseModel.from_backend#1467
hhorii merged 9 commits into
Qiskit:mainfrom
itoko:fix-1464

Conversation

@itoko
Copy link
Copy Markdown
Contributor

@itoko itoko commented Feb 22, 2022

Fixes #1464 by changing the behavior of NoiseModel.from_backend when T2 value greater than 2 * T_1 is supplied such that it truncates the T2 value up to 2 * T_1 with issuing a user warning. Previously, thermal relaxation errors were created based on non-truncated T2 values, which was causing errors when running noise simulations as reported in #1464.

@itoko itoko added the Changelog: API Change Include in the Changed section of the changelog label Feb 22, 2022
@itoko itoko requested a review from chriseclectic February 24, 2022 23:44
@hhorii
Copy link
Copy Markdown
Collaborator

hhorii commented Mar 1, 2022

This needs a test case at least.

@chriseclectic chriseclectic added Changelog: Bugfix Include in the Fixed section of the changelog and removed Changelog: API Change Include in the Changed section of the changelog labels Mar 1, 2022
itoko and others added 2 commits March 2, 2022 00:32
Co-authored-by: Hiroshi Horii <hhorii@users.noreply.github.com>
Comment thread test/terra/noise/test_noise_model.py Outdated
Copy link
Copy Markdown
Collaborator

@hhorii hhorii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hhorii hhorii merged commit 4c3f0d4 into Qiskit:main Mar 7, 2022
@hhorii hhorii added the stable-backport-potential The issue or PR might be minimal and/or import enough to backport to stable label Mar 14, 2022
hhorii added a commit to hhorii/qiskit-aer that referenced this pull request Mar 14, 2022
…#1467)

* Change not to fail to run noisy simulation with T2 > 2 * T1

Previously NoiseModel.from_backend failed when T2 value is greater than 2 * T1,
however, sometimes backend returns such T2 value. 
This change truncates T2 value up to 2 * T1 with issuing a user warning. 

Co-authored-by: Hiroshi Horii <horii@jp.ibm.com>
hhorii added a commit to hhorii/qiskit-aer that referenced this pull request Mar 14, 2022
…#1467)

* Change not to fail to run noisy simulation with T2 > 2 * T1

Previously NoiseModel.from_backend failed when T2 value is greater than 2 * T1,
however, sometimes backend returns such T2 value. 
This change truncates T2 value up to 2 * T1 with issuing a user warning. 

Co-authored-by: Hiroshi Horii <horii@jp.ibm.com>
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 issue or PR might be minimal and/or import enough to backport to stable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning T2 > 2 * T1 in simulation with device noise model rather than failing

3 participants