I think I found why the target unitary needs to be a TwoQubitWeylDecompositionTwoQubitWeylDecomposition
class as the .a.a
, and also .b.b
, and .c.c
attributes allow for the access of the second np.mod((d[:3]+d[3])/2, 2*np.pi)np.mod((d[:3]+d[3])/2, 2*np.pi)
. This argument is needed for the TwoQubitBasisDecomposer()TwoQubitBasisDecomposer()
, and so the target unitary needs to be a TwoQubitWeylDecompositionTwoQubitWeylDecomposition
. I hope this helps. :)
epelaez
- 3k
- 1
- 9
- 31