Closed kenya-sk closed 7 months ago
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
The branch was not appropriate, so it was closed and the pull request was recreated.
OpenQASM 2.0 does not support global phase (https://github.com/Qiskit/qiskit/issues/7167#issuecomment-947821313). Therefore, the current implementation generated an error and terminated the program. Since the global phase does not affect the observation results, I have changed it to be supported as a warning and the program can be executed.
The following is how to handle the situation.
qasm()
is an instance ofops.GlobalPhaseGate
. If a Circuit is passed, it is deployed to each operator by existing implementations and a decision is made for each.ops.GlobalPhaseGate
, generate a warning and return an empty string for compatibility with previous implementations.