From c20590b3f7d625597bb7b766772eb8b8a8e6550a Mon Sep 17 00:00:00 2001 From: Jake Lishman Date: Fri, 17 Dec 2021 10:40:55 +0000 Subject: [PATCH] Give FakeOpenPulse2Q qubit T2 times and readout errors 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. --- qiskit/test/mock/fake_openpulse_2q.py | 4 ++++ .../notes/fix-fake-openpulse2q-15f9c880de52e98f.yaml | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 releasenotes/notes/fix-fake-openpulse2q-15f9c880de52e98f.yaml diff --git a/qiskit/test/mock/fake_openpulse_2q.py b/qiskit/test/mock/fake_openpulse_2q.py index db08df4105e0..efd27d648212 100644 --- a/qiskit/test/mock/fake_openpulse_2q.py +++ b/qiskit/test/mock/fake_openpulse_2q.py @@ -280,11 +280,15 @@ def __init__(self): qubits=[ [ Nduv(date=mock_time, name="T1", unit="µs", value=71.9500421005539), + Nduv(date=mock_time, name="T2", unit="µs", value=69.4240447362455), Nduv(date=mock_time, name="frequency", unit="MHz", value=4919.96800692), + Nduv(date=mock_time, name="readout_error", unit="", value=0.02), ], [ Nduv(date=mock_time, name="T1", unit="µs", value=81.9500421005539), + Nduv(date=mock_time, name="T2", unit="µs", value=75.5598482446578), Nduv(date=mock_time, name="frequency", unit="GHz", value=5.01996800692), + Nduv(date=mock_time, name="readout_error", unit="", value=0.02), ], ], gates=[ diff --git a/releasenotes/notes/fix-fake-openpulse2q-15f9c880de52e98f.yaml b/releasenotes/notes/fix-fake-openpulse2q-15f9c880de52e98f.yaml new file mode 100644 index 000000000000..337ef5c70bce --- /dev/null +++ b/releasenotes/notes/fix-fake-openpulse2q-15f9c880de52e98f.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + The ``FakeOpenPulse2Q`` mock backend now has T2 times and readout errors + stored for its qubits. These are arbitrary values, approximately consistent + with real backends at the time of its creation.