-
Notifications
You must be signed in to change notification settings - Fork 156
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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] |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) | ||
|
There was a problem hiding this comment.
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?
Summary
wip
Details and comments
Fixes #2023