View source: R/046_atoms_affine_partial_trace.R
| partial_trace | R Documentation |
Assumes expr is a 2D square matrix representing a Kronecker product
of length(dims) subsystems. Returns the partial trace over the
subsystem at index axis (1-indexed).
partial_trace(expr, dims, axis = 1L)
expr |
An Expression (2D square matrix) |
dims |
Integer vector of subsystem dimensions |
axis |
Integer (1-indexed) subsystem to trace out |
An Expression representing the partial trace
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.