Skip to content

Layout Gateset is not being considered #136

@dvnoble

Description

@dvnoble

Greetings!

The Perth backennd in Qiskit has no H gate. You can check in https://github.com/Qiskit/qiskit-ibm-runtime/blob/stable/0.24/qiskit_ibm_runtime/fake_provider/backends/perth/conf_perth.json. Search for "basis_gates": ["cx", "id", "rz", "sx", "x"]
When I use the Perth layout according to the Qiskit specification (without H gates in the layout file) and I use the following dof script file:

qcir read benchmark/qft/qft_7.qasm
qcir print --stat
qc2zx
zx print --stat
zx copy
zx optimize --full
zx print --stat
zx2qc
qcir print --stat
qcir optimize
qcir print --stat

device read benchmark/topology/perth_7.layout
duostra -c
qcir print --stat

qcir list

qcir write examples/qft_7-opt.qasm

quit -f

The resulting circuit still includes H gates which I think is not the expected. I am using qsyn version 0.7.0.

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