Skip to content
Discussion options

You must be logged in to vote

The full error message includes:

  File "/home/edyounis/.local/share/Workspace/bqskit/.env/lib/python3.13/site-packages/bqskit/utils/math.py", line 191, in pauliz_expansion
    raise ValueError(msg)
ValueError: H must be a diagonal matrix.


The above exception was the direct cause of the following exception:

The WalshDiagonalSynthesisPass is only designed to handle Diagonal matrices, which your input is not. This is documented in the name and the pass documentation.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@edyounis
Comment options

@mariagg-quantinuum
Comment options

@mariagg-quantinuum
Comment options

@edyounis
Comment options

@mariagg-quantinuum
Comment options

Answer selected by mariagg-quantinuum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants