Skip to main content

partial_trace

Function partial_trace 

Source
pub fn partial_trace(
    state: &TwoQubitState,
    trace_out: usize,
) -> DensityMatrix2x2
Expand description

Partial trace: trace out one qubit to get the density matrix of the other.