DynamicCircuitInstructionDurations.update#
- DynamicCircuitInstructionDurations.update(inst_durations, dt=None)[source]#
Update self with inst_durations (inst_durations overwrite self). Overrides the default durations for certain hardcoded instructions.
- Parameters:
inst_durations (
Union
[List
[Tuple
[str
,Optional
[Iterable
[int
]],float
,Optional
[Iterable
[float
]],str
]],List
[Tuple
[str
,Optional
[Iterable
[int
]],float
,Optional
[Iterable
[float
]]]],List
[Tuple
[str
,Optional
[Iterable
[int
]],float
,str
]],List
[Tuple
[str
,Optional
[Iterable
[int
]],float
]],InstructionDurations
,None
]) – Instruction durations to be merged into self (overwriting self).dt (
Optional
[float
]) – Sampling duration in seconds of the target backend.
- Returns:
The updated InstructionDurations.
- Return type:
InstructionDurations
- Raises:
TranspilerError – If the format of instruction_durations is invalid.