Skip to content

Align is not supported by OpenQASM #1478

Open
@Rumoa

Description

@Rumoa

Implementation of Align matrix is not supported by OpenQASM
I am trying to implement a delay gate, equivalent to the one from qiskit. Since in the documentation there is no delay gate, I thought Align could be used as it allows to add a delay as parameter function.

When trying to run a simple circuit with this gate:

from qibo import gates
from qibo.models import Circuit

from qiboconnection import API

api = API.login(username="insert_your_user_id", api_key="insert_your_api_key")



c = Circuit(1)
c.add(gates.X(0))
c.add(gates.Align(0, delay=int(1)))
c.add(gates.M(0))


job_id = api.execute(circuit=c, device_id=1)

result = api.get_job(job_id).result

the following errors appears:

[Qibo 0.2.8|ERROR|2024-10-08 12:35:57]: Align is not supported by OpenQASM

Is there any other way to implement the delay gate?

Thank you in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions