qiskit-documentation/docs/api/qiskit/0.42/qiskit.transpiler.Instructi...

43 lines
1.8 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: InstructionProperties
description: API reference for qiskit.transpiler.InstructionProperties
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.transpiler.InstructionProperties
---
# InstructionProperties
<Class id="qiskit.transpiler.InstructionProperties" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.23/qiskit/transpiler/target.py" signature="InstructionProperties(duration=None, error=None, calibration=None)" modifiers="class">
Bases: `object`
A representation of the properties of a gate implementation.
This class provides the optional properties that a backend can provide about an instruction. These represent the set that the transpiler can currently work with if present. However, if your backend provides additional properties for instructions you should subclass this to add additional custom attributes for those custom/additional properties by the backend.
Create a new `InstructionProperties` object
**Parameters**
* **duration** (`Optional`\[`float`]) The duration, in seconds, of the instruction on the specified set of qubits
* **error** (`Optional`\[`float`]) The average error rate for the instruction on the specified set of qubits.
* **calibration** (`Union`\[[`Schedule`](qiskit.pulse.Schedule "qiskit.pulse.schedule.Schedule"), [`ScheduleBlock`](qiskit.pulse.ScheduleBlock "qiskit.pulse.schedule.ScheduleBlock"), `CalibrationEntry`, `None`]) The pulse representation of the instruction.
## Attributes
### duration
<Attribute id="qiskit.transpiler.InstructionProperties.duration" />
### error
<Attribute id="qiskit.transpiler.InstructionProperties.error" />
### calibration
<Attribute id="qiskit.transpiler.InstructionProperties.calibration">
The pulse representation of the instruction.
</Attribute>
</Class>