Closed mofeing closed 8 months ago
Related code moved to Qrochet.jl
.
Triggering TagBot for merged registry pull request: https://github.com/bsc-quantic/Registry/pull/100
Triggering TagBot for merged registry pull request: https://github.com/bsc-quantic/Registry/pull/105
LinearAlgebra.tr
is the Julia function for the trace operator. Specialized methods must be defined forQuantumTensorNetwork
.If the quantum tensor network is a
Property
(i.e. a closed TN, its contraction returns a scalar number), then it should act as the identity and do nothing.If it's a
State
, it should error.If it's an
Operator
, then it should connect the input and output indices.