qiskit.transpiler.Target.update_from_instruction_schedule_map¶
- Target.update_from_instruction_schedule_map(inst_map, inst_name_map=None, error_dict=None)[source]¶
Update the target from an instruction schedule map.
If the input instruction schedule map contains new instructions not in the target they will be added. However, if it contains additional qargs for an existing instruction in the target it will error.
- Parameters
inst_map (InstructionScheduleMap) – The instruction
inst_name_map (dict) – An optional dictionary that maps any instruction name in
inst_map
to an instruction object. If not provided, instruction is pulled from the standard Qiskit gates, and finally custom gate instnace is created with schedule name.error_dict (dict) –
A dictionary of errors of the form:
{gate_name: {qarg: error}}
example:: (for) – {‘rx’: {(0, ): 1.4e-4, (1, ): 1.2e-4}}
defined (For each entry in the inst_map if error_dict is) –
from (a when updating the Target the error value will be pulled) –
then (this dictionary. If one is not found in error_dict) –
used. (None will be) –