-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Replace bit condition “c_if” in bit-string condition “if_test” of "qiskit_convert.py" #366
Comments
The conditional phase is supported in qiskit circuit.
For instance,
https://docs.quantum.ibm.com/api/qiskit/qiskit.circuit.library.GlobalPhaseGate Should we make another issue? |
@yoshi-qc what is the priority on this? Does it affect functionality? |
I discuss this issue with @sjdilkes . He manages this issue now. |
Related to #415 |
Closing as duplicate. I've made some of the changes necessary on a branch (see 1929e60 ) but it can't be merged because it causes test failures due to qiskit not having caught up yet. |
In “tk_to_qiskit”, a conditional gate in TKET circuit transpires a conditional gate of qiskit circuit using bit condition “c_if” on L660-L697 of “qiskit_convert.py”.
https://github.com/CQCL/pytket-qiskit/blob/main/pytket/extensions/qiskit/qiskit_convert.py
https://docs.quantum.ibm.com/api/qiskit/qiskit.circuit.InstructionSet#c_if
I found that bit-string condition “if_test” is currently supported and recommended in qiskit. Should we edit the lines L660-L697 of “qiskit_convert.py”?
https://docs.quantum.ibm.com/api/qiskit/qiskit.circuit.QuantumCircuit#if_test
pytket-qiskit/pytket/extensions/qiskit/qiskit_convert.py
Line 660 in 9417469
The text was updated successfully, but these errors were encountered: