|
14 | 14 | """
|
15 | 15 | from test.base import QiskitExperimentsTestCase
|
16 | 16 | from qiskit.exceptions import QiskitError
|
| 17 | +from qiskit.providers.fake_provider import GenericBackendV2 |
17 | 18 | from qiskit_experiments.library import Tphi, T2Hahn, T2Ramsey
|
18 | 19 | from qiskit_experiments.test.noisy_delay_aer_simulator import NoisyDelayAerBackend
|
19 | 20 | from qiskit_experiments.library.characterization.analysis import (
|
@@ -146,11 +147,12 @@ def test_roundtrip_serializable(self):
|
146 | 147 |
|
147 | 148 | def test_circuits_roundtrip_serializable(self):
|
148 | 149 | """Test round trip JSON serialization"""
|
149 |
| - exp = Tphi([0], [1], [2]) |
| 150 | + backend = GenericBackendV2(num_qubits=2) |
| 151 | + exp = Tphi([0], [1e-6], [2e-6], backend=backend) |
150 | 152 | self.assertRoundTripSerializable(exp._transpiled_circuits())
|
151 |
| - exp = Tphi([0], [1], [2], "hahn", 3) |
| 153 | + exp = Tphi([0], [1e-6], [2e-6], "hahn", 3, backend=backend) |
152 | 154 | self.assertRoundTripSerializable(exp._transpiled_circuits())
|
153 |
| - exp = Tphi([0], [1], [2], "ramsey", 0) |
| 155 | + exp = Tphi([0], [1e-6], [2e-6], "ramsey", 0, backend=backend) |
154 | 156 | self.assertRoundTripSerializable(exp._transpiled_circuits())
|
155 | 157 |
|
156 | 158 | def test_analysis_config(self):
|
|
0 commit comments