Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into move-slow-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 committed May 9, 2022
2 parents 7bbb008 + bd9ec51 commit 1257c98
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions qiskit_ibm_provider/utils/backend_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from qiskit.circuit.library.standard_gates import IGate, SXGate, XGate, CXGate, RZGate
from qiskit.circuit.parameter import Parameter
from qiskit.circuit.gate import Gate
from qiskit.circuit.delay import Delay
from qiskit.circuit.measure import Measure
from qiskit.circuit.reset import Reset
from qiskit.providers.models import (
Expand Down Expand Up @@ -131,6 +132,10 @@ def convert_to_target(
target[inst][(qubit,)].calibration = sched
else:
target[inst][qarg].calibration = sched
if "delay" not in target:
target.add_instruction(
Delay(Parameter("t")), {(bit,): None for bit in range(target.num_qubits)}
)
return target


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ upgrade:
from qiskit_ibm_provider import IBMProvider
provider = IBMProvider() # load saved account
IBMProvider.active_account() # check active account
provider.active_account() # check active account

0 comments on commit 1257c98

Please sign in to comment.