Skip to content

Unexpected behavior of convert_effect in modelmember/povms/__init__.py. #544

Open
@rileyjmurray

Description

@rileyjmurray

I have a CPTP model, and I want to convert spam members in-place to only be TP. The following codepath gets hit in that conversion.

if not flatten_structure and isinstance(effect, ComposedPOVMEffect):
return ComposedPOVMEffect(effect.effect_vec.copy(), # don't convert (usually static) effect vec
_mm.operations.convert(effect.error_map, to_type, basis, "identity",
flatten_structure))

I don't know if the code's current behavior is intended, but it doesn't return an effect that can be fed into a TPPOVM class.

Comments, @coreyostrove and @sserita?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions