Skip to content

Commit

Permalink
Skip StateTomography test until Qiskit Experimrents is ready for 2.0 (#…
Browse files Browse the repository at this point in the history
…55)

BackendV1 and qiskit.qobj removals in Qiskit/qiskit#13793 cause the test in qiskit_neko/tests/experiments/test_tomography.py to fail. This is part of the tests that are blocking the Qiskit/qiskit#13793 and Qiskit/qiskit#13872 PR in Qiskit from being merged.

There is a PR in Qiskit Experiments that address these removals: qiskit-community/qiskit-experiments#1526. Until it is merged, we need to skip this failing test.

Tracked in #54
  • Loading branch information
eliarbel authored Mar 5, 2025
1 parent 3ce7176 commit e45e2ff
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion qiskit_neko/tests/experiments/test_tomography.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,30 @@
# that they have been altered from the originals.

"""Tests for quantum state tomography."""
import unittest

from qiskit_experiments.library import StateTomography
from qiskit import QuantumCircuit
from qiskit.quantum_info import DensityMatrix, state_fidelity

from qiskit_neko import decorators
from qiskit_neko.tests import base
import qiskit


class TestQuantumStateTomography(base.BaseTestCase):
"""Tests adapted from circuit basics tutorial."""

@unittest.skipIf(
tuple(map(int, qiskit.__version__.split(".")[:2])) >= (2, 0),
"Skipping test until Qiskit Experiments is ready for Qiskit 2.0. "
"Tracked in: https://github.com/Qiskit/qiskit-neko/issues/54",
)
@decorators.component_attr("terra", "backend", "experiment")
def test_ghz_circuit_quantum_info(self):
"""Test state tomography of ghz state circuit"""

from qiskit_experiments.library import StateTomography

nq = 3
qc_ghz = QuantumCircuit(nq)
qc_ghz.h(0)
Expand Down

0 comments on commit e45e2ff

Please sign in to comment.