Skip to content

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

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. 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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