Skip to content

Bug: Measurement after swap and cx #267

@cjn10

Description

@cjn10

The following code yields an error

a = QuantumFloat(2)
swap(a[0], a[1])
cx(a[0], a[1])
multi_measurement([a])
>> AttributeError: 'int' object has no attribute 'identifier'

The same happens when using a.get_measurement. This appears to be a problem with the swap and cx gate together with the measurement. Removing any of the three operations avoids the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions