Quantum circuit metrics

Norms for unitary compilation.

Unitary distances


source

Unitary_FrobeniusNorm

 Unitary_FrobeniusNorm ()

Initialize self. See help(type(self)) for accurate signature.

a = torch.tensor([[1,2], [2, 1]]).float()
b = torch.tensor([[2,3], [2, 2]]).float()

g = Unitary_FrobeniusNorm
g.distance(a,b)
tensor(1.5000)
Back to top