Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.transpiler.InstructionDurations.get

InstructionDurations.get(inst, qubits, unit='dt', parameters=None)[source]

Get the duration of the instruction with the name, qubits, and parameters.

Some instructions may have a parameter dependent duration.

0.19.0 ভার্সন থেকে ডেপ্রিকেটেড: Using a Qubit or List[Qubit] for the qubits argument to InstructionDurations.get() is deprecated as of qiskit-terra 0.19.0. It will be removed no earlier than 3 months after the release date. Instead, use an integer for the qubit index.

প্যারামিটার
  • inst (Union[str, Instruction]) -- An instruction or its name to be queried.

  • qubits (Union[int, List[int], Qubit, List[Qubit]]) -- Qubits or its indices that the instruction acts on.

  • unit (str) -- The unit of duration to be returned. It must be 's' or 'dt'.

  • parameters (Optional[List[float]]) -- The value of the parameters of the desired instruction.

রিটার্নস

The duration of the instruction on the qubits.

রিটার্ন টাইপ

float|int

রেইজেস

TranspilerError -- No duration is defined for the instruction.