Skip to content

TestUnitaryCircuit.test_qasm_2q_unitary failing on windows #4856

@kdk

Description

@kdk

Information

  • Qiskit Terra version: master @ 9fb0f2e
  • Python version: 3.6
  • Operating system: Windows

What is the current behavior?

From https://dev.azure.com/qiskit-ci/qiskit-terra/_build/results?buildId=17021&view=logs&j=c36f2e0f-c9b4-5d6c-0a9a-bb54323ef157&t=c9849e48-bd8f-5b19-f5f8-0b7675dae500&l=5319 :

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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions