question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test `test_hilbert_schmidt_inner_product_is_positive_definite[m6]` fails on aarch64 and ppc64le

See original GitHub issue

Description of the issue Test test_hilbert_schmidt_inner_product_is_positive_definite[m6] fails on openSUSE Tumbleweed aarch64/ppc64le

[  765s] =================================== FAILURES ===================================
[  765s] _________ test_hilbert_schmidt_inner_product_is_positive_definite[m6] __________
[  765s] 
[  765s] m = array([[ 0.5+0.5j, -0.5-0.5j],
[  765s]        [ 0.5+0.5j,  0.5+0.5j]])
[  765s] 
[  765s]     @pytest.mark.parametrize('m', (I, X, Y, Z, H, SQRT_X, SQRT_Y, SQRT_Z))
[  765s]     def test_hilbert_schmidt_inner_product_is_positive_definite(m):
[  765s]         v = cirq.hilbert_schmidt_inner_product(m, m)
[  765s] >       assert np.isreal(v)
[  765s] E       assert False
[  765s] E        +  where False = <function isreal at 0xffff928f8310>((2.000000000000001+4.930380657631324e-32j))
[  765s] E        +    where <function isreal at 0xffff928f8310> = np.isreal
[  765s] 
[  765s] cirq/linalg/operator_spaces_test.py:166: AssertionError

How to reproduce the issue Run test suite on aarch64 or ppc64le.

Cirq version 0.9.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dabaconcommented, Nov 12, 2021

@risicle added fixes for the tests you list. Could you verify these are now fine. Thanks!

0reactions
risiclecommented, Nov 12, 2021

Absolutely. 100%. Perfect - thankyou. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

4.4.0 test/unit/pages fails on ppc64le, ppc64, armv7hl ...
on my native Fedora 25 machine and could not reproduce your build observations: no warning when compiling test/unit/pack.c; no error when ...
Read more >
Error of Rosetta 3.13 compilation on aarch64 processor
I'm trying to compile rosetta w/ scons by hacking the tools/build/setup_platforms.py, tools/build/basic.settings and tools/build/options.
Read more >
aarch64-linux-gnu-gcc Cross Complier for arm fails
It should be aarch64-linux-gnu-g++ . Please try the following steps: Add CXX=aarch64-linux-gnu-g++ in configure command line and run again. ...
Read more >
Bug #66242 :: CLI server failure on 64-bit ARM (Aarch64)
Description: ------------ I built php 5.5.4 on ARM AARCH64 CPU, system linux 64bits I ran make test, I got issues: ...
Read more >
Fedora ARM - Firefox fails to open on aarch64 Workstation
2063961 – Fedora ARM - Firefox fails to open on aarch64 Workstation. View All Add an attachment (proposed patch, testcase, etc.)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found