Skip to content

Instantly share code, notes, and snippets.

@nelimee
Created January 11, 2019 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nelimee/a86c603d9d0c93f546a1108e72cb007d to your computer and use it in GitHub Desktop.
Save nelimee/a86c603d9d0c93f546a1108e72cb007d to your computer and use it in GitHub Desktop.
Matrix raising an exception in qiskit.mapper._compiling.two_qubit_kak
import numpy
from qiskit.mapper._compiling import two_qubit_kak
A = numpy.array([[15, 9, 5, -3], [9, 15, 3, -5], [5, 3, 15, -9], [-3, -5, -9, 15]], dtype=numpy.complex) / 4
two_qubit_kak(A)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment