Skip to content

Restricted gate set allows any controlled single qubit operation #290

@herr-d

Description

@herr-d

When using the auto-replacer with a restricted gate set, controlled single qubit operations are also allowed.
I think this should not be allowed.

For example:

get_engine_list(one_qubit_gates=(HGate, XGate, YGate,
                              ZGate, TGate, Tdag, SGate, Sdag),
                two_qubit_gates=(CNOT,),
                other_gates=(TimeEvolution,))

This allows also controlled T-gates.

There is another thing I noticed: If I specify the TGate as an allowed one qubit gate it does not automatically include the invese of T.

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