Skip to main content

logical_bloch

Function logical_bloch 

Source
pub fn logical_bloch(
    sim: &Simulator,
    output: &OutputLogical,
    frame: (bool, bool),
) -> Result<(f64, f64, f64), ExecError>
Expand description

Read a logical Bloch vector, corrected by the supplied (X, Z) frame bits. Use (false, false) to read the uncorrected state. Signed representatives are preserved, including Y_L = i X_L Z_L.

ยงErrors

Propagates engine errors from malformed logical observables.