Skip to content
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

Background task failure #89

Open
glanzz opened this issue Sep 23, 2024 · 1 comment
Open

Background task failure #89

glanzz opened this issue Sep 23, 2024 · 1 comment

Comments

@glanzz
Copy link

glanzz commented Sep 23, 2024

Transpilation fails when QFTGate is added in the circuit.

from qiskit import QuantumCircuit
from qiskit_ibm_transpiler.transpiler_service import TranspilerService

from qiskit.circuit.library import QFTGate


qft = QFTGate(1)


qc = QuantumCircuit(2)
qc.h(0)
qc.h(1)
qc.append(qft, [0])
qc.measure_all()

print(qc)

for j in range(1,4):
    cloud_transpiler_service = TranspilerService(
        backend_name="ibm_sherbrooke",
        ai="false",
        optimization_level=j,
    )
    transpiled_circuit = cloud_transpiler_service.run(qc)
    print(f" Passed optimization level {j}")

Output:

        ┌───┐┌─────┐ ░ ┌─┐   
   q_0: ┤ H ├┤ Qft ├─░─┤M├───
        ├───┤└─────┘ ░ └╥┘┌─┐
   q_1: ┤ H ├────────░──╫─┤M├
        └───┘        ░  ║ └╥┘
meas: 2/════════════════╩══╩═
                        0  1 
ERROR:qiskit_ibm_transpiler.wrappers.base:The request FAILED
ERROR:qiskit_ibm_transpiler.wrappers.base:Failed to get a result for transpile: The background task xxxx FAILED
ERROR:qiskit_ibm_transpiler.wrappers.base:The background task xxxx FAILED

qiskit.transpiler.exceptions.TranspilerError: 'The background task xxxx FAILED'
@glanzz glanzz changed the title Background task failure for QFT gate Background task failure Sep 25, 2024
@jesus-talavera-ibm
Copy link
Contributor

Hi @glanzz , can you check if this issue is still happening in last version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants