quantumlib / Cirq

A Python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Apache License 2.0
4.24k stars 1.01k forks source link

OpenQASM 2.0 is removed in latest version of qiskit #6480

Open purva-thakre opened 7 months ago

purva-thakre commented 7 months ago

qiskit 1.0 has removed OpenQASM 2.0.

As cirq-core/cirq/contrib/qasm_import still depends on OpenQASM 2.0, using any version of cirq with the latest version of qiskit leads to quite a few issues.

https://github.com/quantumlib/Cirq/blob/02d29a975ebfcd8e3e2db5356c310c956ece03ac/cirq-core/cirq/testing/consistent_qasm.py#L65

It would help if the compatible qiskit version number is documented somewhere.

The errors in from cirq.contrib.qasm_import import circuit_from_qasm when qiskit is bumped up to the latest version are due to AttributeError: 'list' object has no attribute 'add_qubit'

https://docs.quantum.ibm.com/api/qiskit/qasm2#alternatives