Commit 4bfcc64
authored
[testing] Fix Infleqtion tests for state prep (#4323)
* Follow-up to PR #3824
* Fix the `assert_close` function.
* Manually tested
```
python3 -m pytest -v python/tests/backends/test_Infleqtion.py
=================================================================== test session starts ===================================================================
platform linux -- Python 3.12.3, pytest-8.3.0, pluggy-1.6.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /workspaces/cuda-quantum
configfile: pyproject.toml
plugins: anyio-4.13.0, xdist-3.8.0
collected 9 items
python/tests/backends/test_Infleqtion.py::test_simple_kernel PASSED [ 11%]
python/tests/backends/test_Infleqtion.py::test_all_gates PASSED [ 22%]
python/tests/backends/test_Infleqtion.py::test_multiple_qvector PASSED [ 33%]
python/tests/backends/test_Infleqtion.py::test_multiple_measure PASSED [ 44%]
python/tests/backends/test_Infleqtion.py::test_observe PASSED [ 55%]
python/tests/backends/test_Infleqtion.py::test_state_synthesis PASSED [ 66%]
python/tests/backends/test_Infleqtion.py::test_state_preparation PASSED [ 77%]
python/tests/backends/test_Infleqtion.py::test_state_preparation_builder PASSED [ 88%]
python/tests/backends/test_Infleqtion.py::test_exp_pauli PASSED [100%]
=================================================================== 9 passed in 18.45s ====================================================================
```
---------
Signed-off-by: Pradnya Khalate <pkhalate@nvidia.com>1 parent 1529df7 commit 4bfcc64
1 file changed
Lines changed: 9 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
194 | 193 | | |
195 | 194 | | |
196 | 195 | | |
197 | | - | |
| 196 | + | |
198 | 197 | | |
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
202 | 201 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 202 | + | |
| 203 | + | |
207 | 204 | | |
208 | 205 | | |
209 | 206 | | |
| |||
0 commit comments