forked from qiskit-community/qiskit-experiments
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle test incompatibilities with Qiskit 1.3 (qiskit-community#1478)
These changes should get the daily test run against Qiskit main passing again for now. The necessary changes were: * Specify `num_qubits` for the `SingleTransmonTestBackend` target which now must match the number of qubit properties passed. * Only convert deprecation warnings to errors in the tests when the warning appears to be triggered by qiskit-experiments code. Qiskit 1.3 triggers new deprecation warnings by calling its own deprecated code internally and the Experiments tests either need to ignore those lower level warnings globally or individually each time they come up. Here they are just ignored globally. * Ignore deprecation warnings related to Qiskit Pulse. There are many of these and they need to be addressed, but there is too much work to address them, so they are ignored in favor of being to catch other errors in the tests. * Ignore some deprecated usage of Experiments code in the tests. As part of reworking which warnings are converted to errors warnings triggered by the test code are now converted to errors. Previously only warnings triggered by the `qiskit_experiments` package or deprecation warnings were converted to errors. The few new cases that were surfaced were explicitly testing deprecated functions, so those cases were ignored. * Regenerate the quantum volume expected results. Qiskit 1.3 has a reworked quantum volume function that generates different circuits than Qiskit 1.2 for a given seed number. * Modify an RB test that was checking that RB code gave an error when a target was missing a gate that the experiment wanted to interleave. The test was implemented by deleting an instruction from the target but with Qiskit 1.3 the target is less mutable, so a new target needed to be constructed without the instruction rather than deleting it from a larger target. * Ignore warnings about Qiskit Pulse and internal Qiskit deprecations in the jupyter-sphinx documentation.
- Loading branch information
Showing
14 changed files
with
153 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
test/library/quantum_volume/qv_ideal_probabilities_qiskit_1_3.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[[0.016967836206746738, 0.11989893254007651, 0.00394654461853002, 0.13589528784677357, 0.20511482048008703, 0.0816791691977386, 0.14060546401643623, 0.2958919450936116], [0.12056007843940977, 0.10070988761274678, 0.41332860589623954, 0.07543734133716322, 0.021096066850169303, 0.1601488559241172, 0.03780114546996992, 0.0709180184701846], [0.10058394660184918, 0.39126225007098714, 0.09012977139125049, 0.02982028558144569, 0.005523508253283623, 0.040983681969626276, 0.2946239196681466, 0.04707263646341052], [0.3688522014926478, 0.09580420366241688, 0.027757018918742504, 0.15826915582072928, 0.13834528025457885, 0.11281057034461814, 0.04713950685498301, 0.05102206265128345], [0.2238855389562393, 0.0177775881962427, 0.0010361793224677451, 0.49743548639570334, 0.14345035837415962, 0.010983952529157095, 0.030086371572847458, 0.07534452465318305], [0.07191730758022169, 0.08577798556935443, 0.05222185324072163, 0.011505080428938406, 0.1506083560400655, 0.07947214515779061, 0.06954659702813472, 0.4789506749547722], [0.02933798117949475, 0.0905804630987942, 0.13414073913728367, 0.3283400904287246, 0.0039327427715444745, 0.06305126971619468, 0.07960132612718543, 0.27101538754077775], [0.10361935285611489, 0.5602661574454084, 0.0033379483277632236, 0.024104300671844853, 0.11180012107386983, 0.018590174540476845, 0.06496224115302754, 0.11331970393149465], [0.28002251748562146, 0.15659108128101512, 0.06931560231414717, 0.015939512694748054, 0.20272160865971692, 0.06437155774108827, 0.17997014329975955, 0.031067976523903224], [0.2583110429786593, 0.39280733849970395, 0.01004465642965845, 0.10112365839530935, 0.04820792916847759, 0.019172100821762683, 0.07396094843817139, 0.09637232526825651], [0.04205005835070806, 0.5982838080237505, 0.24825488091343656, 0.11141125271210575, 0.0, 0.0, 0.0, 0.0], [0.21631173866223324, 0.07201585886194255, 0.19647582952426423, 0.10741584491273042, 0.054982878753641044, 0.021165794683348307, 0.2526914377956466, 0.07894061680619284], [0.04109901108305593, 0.5346418163425509, 0.0, 0.0, 0.19988603142757153, 0.22437314114682205, 0.0, 0.0], [0.1069722912636189, 0.19610594120528163, 0.13827775538043613, 0.12862292833267164, 0.05652810658633324, 0.0979666878234763, 0.15917488848657904, 0.1163514009216026], [0.1599264302659344, 0.32405634292478286, 0.050423144948197246, 0.03657193295081257, 0.13405197214337658, 0.1872187743627101, 0.0005017400591434017, 0.1072496623450432], [0.057428879095657914, 0.07553302531949552, 0.05869499440092844, 0.031696849711854186, 0.20158700775693938, 0.20118430243224272, 0.02391580078822289, 0.34995914049465865], [0.12733557958689173, 0.08478618874152216, 0.032857670388396855, 0.08627573094283553, 0.18807352626751228, 0.2365561765088683, 0.15519965863714033, 0.08891546892683337], [0.05434853562358783, 0.1282198611011262, 0.11416220587356729, 0.049568640406240184, 0.1511891111128068, 0.14032078289874864, 0.3087935419191839, 0.05339732106473909], [0.06135629616886566, 0.25774569674205117, 0.0464794921453153, 0.15917144757251409, 0.1677568850176423, 0.18787259587234334, 0.05248811617198047, 0.0671294703092877], [0.005879541314725802, 0.025021402090856428, 0.44431583322312285, 0.05198340090748109, 0.04211534913258567, 0.013297849871047806, 0.26003956333041356, 0.15734706012976746]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters