-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
standard gates in qiskit in its own inc file #6125
Conversation
…kip_target_basis_equivalences_1 set
@1ucian0 is this a breaking change? If a user had something like: from qiskit import QuantumCircuit
qasm = """
OPENQASM 2.0;
include "qelib1.inc";
qreg q[3];
p(pi/2) q[0];
"""
circuit = QuantumCircuit.from_qasm_str(qasm) would this break in the next version? If so, in addition to Qiskit users this would also be a breaking change for the IBM Quantum Composer, old previous saved circuits will stop working. The composer is relying in the I'm wondering, does it make sense to introduce this breaking change now that the new version of OpenQasm 3.0 is already out? |
There are two paths:
If " |
both are Qiskit users (Qiskit services in the cloud) so it would be a breaking change the same it would be for regular Qiskit users with the snippet above. |
okey... let's dump the summary of the off-the-band discussion:
The ToDo for this PR is implementing the warning with the implicit include change and renaming |
deprecation warning added in 79907ee. Ready for review again. |
I think this can be closed for now, in the light of the discussion in #10737 |
Fixes #4312
The
qiskit/qasm/libs/qelib1.inc
library is defined in the OpenQASM specification (p.10). The fileqiskit/qasm/libs/standard_gates.inc
is created with the gates in Qiskit.Because
u
is not part of the originalqelib1.inc
, the trick if aliasingU
tou
from #6077 had to be readjusted. Alsoswap
is not part of the originalqelib1.inc
, so many tests needinclude "standard_gates.inc";
instead.