-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Information
- Qiskit Terra version: master @ 9fb0f2e
- Python version: 3.6
- Operating system: Windows
What is the current behavior?
test.python.circuit.test_unitary.TestUnitaryCircuit.test_qasm_2q_unitary
------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "D:\a\1\s\test\python\circuit\test_unitary.py", line 271, in test_qasm_2q_unitary
self.assertEqual(expected_qasm, qc.qasm())
File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\unittest\case.py", line 829, in assertEqual
assertion_func(first, second, msg=msg)
File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\unittest\case.py", line 1203, in assertMultiLineEqual
self.fail(self._formatMessage(msg, standardMsg))
File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\unittest\case.py", line 670, in fail
raise self.failureException(msg)
AssertionError: 'OPEN[98 chars]u3(0,0,0) p0;\n\tu3(0,0,0) p1;\n}\ncustom_gate[37 chars]];\n' != 'OPEN[98 chars]u3(0,-pi/4,pi/4) p0;\n\tu3(0,0,0) p1;\n}\ncust[44 chars]];\n'
OPENQASM 2.0;
include "qelib1.inc";
qreg q0[2];
creg c0[1];
x q0[0];
gate custom_gate p0,p1 {
- u3(0,0,0) p0;
+ u3(0,-pi/4,pi/4) p0;
u3(0,0,0) p1;
}
custom_gate q0[0],q0[1];
custom_gate q0[1],q0[0];
Steps to reproduce the problem
What is the expected behavior?
Suggested solutions
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working