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

Update unit tests for Qiskit 1.3 #2041

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kt474
Copy link
Member

@kt474 kt474 commented Nov 12, 2024

Summary

wip

Details and comments

Fixes #2023

@@ -85,7 +85,7 @@ def test_raise_faulty_edge(self):
circ.cx(i, i + 1)

transpiled = transpile(circ, backend=fake_backend)
edge_qubits = [0, 1]
edge_qubits = [1, 2]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what changed here but these tests fail with (0,1)

@@ -870,49 +868,6 @@ def test_registers(self):

self.assertEqual(expected, scheduled)

def test_c_if_plugin_conversion_with_transpile(self):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the c_if control flow is no longer supported so I think we can remove these tests?

'c_if control-flow is not supported by this pass. Please apply "ConvertConditionsToIfOps" to convert these conditional operations to new-style Qiskit control-flow.

@@ -291,7 +290,7 @@ def _top_ord(dag):

midmeas_dd = pm.run(self.midmeas)

combined_u = UGate(3 * pi / 4, -pi / 2, pi / 2)
combined_u = UGate(pi, 0, pi)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also not sure about this change

op = instruction.operation
if isinstance(op, RXGate):
self.assertEqual(op.duration, rx_duration)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is failing because duration is deprecated?

@kt474 kt474 marked this pull request as ready for review November 13, 2024 16:15
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 this pull request may close these issues.

Fix unit tests failing against Qiskit 1.3
1 participant