这是indexloc提供的服务,不要输入任何密码
Skip to content

Unable to import some benchmarks due to incorrect names of qreg and cregs #9

@hrushikesh890

Description

@hrushikesh890

While load qasm files from small/ folder, we encounter following error

Error loading vqe_uccsd_n4.qasm: "<input>:2286,8: 'q' is not defined in this scope"
Error loading vqe_uccsd_n6.qasm: "<input>:2286,8: 'q' is not defined in this scope"
Error loading hhl_n10.qasm: "<input>:186801,8: 'q' is not defined in this scope"
Error loading vqe_uccsd_n8.qasm: "<input>:10813,8: 'q' is not defined in this scope"
Error loading hhl_n10.qasm: "<input>:186801,8: 'q' is not defined in this scope"
Error loading vqe_uccsd_n8.qasm: "<input>:10813,8: 'q' is not defined in this scope"```

The root cause is in most of these qasm files the qreg is named reg instead of q. 

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