Skip to content

Inconsistent semantics of leakage_scale between general.rs and error_h1.py #185

@PabloAndresCQ

Description

@PabloAndresCQ

In Rust PECOS' general error model, leakage_scale is not a scale parameter in the same sense as the rest, but actually a probability that when the noise model requests a leak event, the leak is modelled as escaping to a leaked state |2> or a depolarising channel is applied to it (see here). In Python PECOS for H1/H2, there was only a binary choice (provided by leak2depolar).

There is a leakage_scale in Python PECOS H1/H2, but it does not have the same semantics as Rust PECOS. It is actually a standard scaling parameter there (see here) that does not have a corresponding parameter in Rust PECOS.

IMO, the current Rust leakage_scale should be renamed to something else (maybe p_leak2depolar) and the H1/H2 leakage_scale be added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions