
Performing  hadamard
Performing matrix multiplication

Current state:  tensor([[[1.+0.j, 0.+0.j],
         [0.+0.j, 0.+0.j]]])
New state:  tensor([[[0.7071+0.j, 0.0000+0.j],
         [0.7071+0.j, 0.0000+0.j]]])

Performing  hadamard
Performing matrix multiplication

Current state:  tensor([[[0.7071+0.j, 0.0000+0.j],
         [0.7071+0.j, 0.0000+0.j]]])
New state:  tensor([[[0.5000+0.j, 0.5000+0.j],
         [0.5000+0.j, 0.5000+0.j]]])
-----Oracle-----

Performing  cz
Performing matrix multiplication

Current state:  tensor([[[0.5000+0.j, 0.5000+0.j],
         [0.5000+0.j, 0.5000+0.j]]])
New state:  tensor([[[ 0.5000+0.j,  0.5000+0.j],
         [ 0.5000+0.j, -0.5000+0.j]]])
-------------1-------------
-----Diffuser-----

Performing  hadamard
Performing matrix multiplication

Current state:  tensor([[[ 0.5000+0.j,  0.5000+0.j],
         [ 0.5000+0.j, -0.5000+0.j]]])
New state:  tensor([[[0.7071+0.j, 0.0000+0.j],
         [0.0000+0.j, 0.7071+0.j]]])

Performing  hadamard
Performing matrix multiplication

Current state:  tensor([[[0.7071+0.j, 0.0000+0.j],
         [0.0000+0.j, 0.7071+0.j]]])
New state:  tensor([[[ 0.5000+0.j,  0.5000+0.j],
         [ 0.5000+0.j, -0.5000+0.j]]])

Performing  pauliz
Performing matrix multiplication

Current state:  tensor([[[ 0.5000+0.j,  0.5000+0.j],
         [ 0.5000+0.j, -0.5000+0.j]]])
New state:  tensor([[[ 0.5000+0.j,  0.5000+0.j],
         [-0.5000+0.j,  0.5000+0.j]]])

Performing  pauliz
Performing matrix multiplication

Current state:  tensor([[[ 0.5000+0.j,  0.5000+0.j],
         [-0.5000+0.j,  0.5000+0.j]]])
New state:  tensor([[[ 0.5000+0.j, -0.5000+0.j],
         [-0.5000+0.j, -0.5000+0.j]]])

Performing  cz
Performing matrix multiplication

Current state:  tensor([[[ 0.5000+0.j, -0.5000+0.j],
         [-0.5000+0.j, -0.5000+0.j]]])
New state:  tensor([[[ 0.5000+0.j, -0.5000+0.j],
         [-0.5000+0.j,  0.5000+0.j]]])

Performing  hadamard
Performing matrix multiplication

Current state:  tensor([[[ 0.5000+0.j, -0.5000+0.j],
         [-0.5000+0.j,  0.5000+0.j]]])
New state:  tensor([[[ 0.0000+0.j,  0.0000+0.j],
         [ 0.7071+0.j, -0.7071+0.j]]])

Performing  hadamard
Performing matrix multiplication

Current state:  tensor([[[ 0.0000+0.j,  0.0000+0.j],
         [ 0.7071+0.j, -0.7071+0.j]]])
New state:  tensor([[[0.0000+0.j, 0.0000+0.j],
         [0.0000+0.j, 1.0000+0.j]]])
-------------2-------------
-----Diffuser-----

Performing  hadamard
Performing matrix multiplication

Current state:  tensor([[[0.0000+0.j, 0.0000+0.j],
         [0.0000+0.j, 1.0000+0.j]]])
New state:  tensor([[[ 0.0000+0.j,  0.7071+0.j],
         [ 0.0000+0.j, -0.7071+0.j]]])

Performing  hadamard
Performing matrix multiplication

Current state:  tensor([[[ 0.0000+0.j,  0.7071+0.j],
         [ 0.0000+0.j, -0.7071+0.j]]])
New state:  tensor([[[ 0.5000+0.j, -0.5000+0.j],
         [-0.5000+0.j,  0.5000+0.j]]])

Performing  pauliz
Performing matrix multiplication

Current state:  tensor([[[ 0.5000+0.j, -0.5000+0.j],
         [-0.5000+0.j,  0.5000+0.j]]])
New state:  tensor([[[ 0.5000+0.j, -0.5000+0.j],
         [ 0.5000+0.j, -0.5000+0.j]]])

Performing  pauliz
Performing matrix multiplication

Current state:  tensor([[[ 0.5000+0.j, -0.5000+0.j],
         [ 0.5000+0.j, -0.5000+0.j]]])
New state:  tensor([[[0.5000+0.j, 0.5000+0.j],
         [0.5000+0.j, 0.5000+0.j]]])

Performing  cz
Performing matrix multiplication

Current state:  tensor([[[0.5000+0.j, 0.5000+0.j],
         [0.5000+0.j, 0.5000+0.j]]])
New state:  tensor([[[ 0.5000+0.j,  0.5000+0.j],
         [ 0.5000+0.j, -0.5000+0.j]]])

Performing  hadamard
Performing matrix multiplication

Current state:  tensor([[[ 0.5000+0.j,  0.5000+0.j],
         [ 0.5000+0.j, -0.5000+0.j]]])
New state:  tensor([[[0.7071+0.j, 0.0000+0.j],
         [0.0000+0.j, 0.7071+0.j]]])

Performing  hadamard
Performing matrix multiplication

Current state:  tensor([[[0.7071+0.j, 0.0000+0.j],
         [0.0000+0.j, 0.7071+0.j]]])
New state:  tensor([[[ 0.5000+0.j,  0.5000+0.j],
         [ 0.5000+0.j, -0.5000+0.j]]])
