Tamil
மொழிகள்
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

InstructionScheduleMap

class InstructionScheduleMap[source]

Bases: object

Mapping from QuantumCircuit qiskit.circuit.Instruction names and qubits to Schedule s. In particular, the mapping is formatted as type:

Dict[str, Dict[Tuple[int], Schedule]]

where the first key is the name of a circuit instruction (e.g. 'u1', 'measure'), the second key is a tuple of qubit indices, and the final value is a Schedule implementing the requested instruction.

These can usually be seen as gate calibrations.

Initialize a circuit instruction to schedule mapper instance.

Methods

add

Add a new known instruction for the given qubits and its mapping to a pulse schedule.

assert_has

Error if the given instruction is not defined.

get

Return the defined Schedule or ScheduleBlock for the given instruction on the given qubits.

get_parameters

Return the list of parameters taken by the given instruction on the given qubits.

has

Is the instruction defined for the given qubits?

has_custom_gate

Return True if the map has user provided instruction.

pop

Remove and return the defined schedule for the given instruction on the given qubits.

qubit_instructions

Return a list of the instruction names that are defined by the backend for the given qubit or qubits.

qubits_with_instruction

Return a list of the qubits for which the given instruction is defined.

remove

Remove the given instruction from the listing of instructions defined in self.

Attributes

instructions

Return all instructions which have definitions.

By default, these are typically the basis gates along with other instructions such as measure and reset.

Return type

List[str]

Returns

The names of all the circuit instructions which have Schedule definitions in this.