Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading mapomatic breaks DD tests #114

Closed
kevinsung opened this issue May 10, 2024 · 0 comments · Fixed by #117
Closed

Upgrading mapomatic breaks DD tests #114

kevinsung opened this issue May 10, 2024 · 0 comments · Fixed by #117

Comments

@kevinsung
Copy link
Collaborator

kevinsung commented May 10, 2024

The mapomatic commit that broke the code was introduced between mapomatic versions 0.9 and 0.10: qiskit-community/mapomatic@208989e

This prevents us from upgrading mapomatic past 0.9, which in turn blocks us from upgrading to Qiskit 1.0, because mapomatic 0.9 depends on qiskit-terra.

Example test failure (see CI logs of #107 for full test failures):

_______________________________________________________________________________________ TestScaledCostFuncs.test_cost_func_dd _______________________________________________________________________________________

self = <test.utils.test_cost_funcs.TestScaledCostFuncs testMethod=test_cost_func_dd>

    def test_cost_func_dd(self):
        """Test cost function for RZX"""
        backend = FakeWashington()
    
        qc = QuantumCircuit(5)
        qc.h(0)
        qc.cx(0, 1)
        qc.cx(1, 2)
    
        qc2 = qc.copy()
        qc2.cx(2, 3)
        qc2.cx(3, 4)
    
        layout = [0, 1, 2, 3, 4]
        qc_t = transpile(qc, backend, initial_layout=layout)
        qc_dd = add_dynamical_decoupling(qc_t, backend, "XY4pm")
>       best_layout = evaluate_layouts(
            qc_dd,
            layout,
            backend,
            cost_function=cost_func_scaled_cr,
        )[0]
E       IndexError: list index out of range

test/utils/test_cost_funcs.py:151: IndexError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant