Skip to content

Operations

Module providing basic operations for matrix calculations.

matrix_partial_trace(rho, dims, axis=0)

Calculates partial trace of given matrix

Parameters:

Name Type Description Default
rho Array

Input matrix

required
dims List

List of dimensions

required
axis Number

which subsystem to trace out

0

Returns:

Type Description
Array

Partial trace of matrix