NoiseModel.add_basis_gates

NoiseModel.add_basis_gates(instructions, warnings=True)[source]

Add additional gates to the noise model basis_gates.

This should be used to add any gates that are identified by a custom gate label in the noise model.

Parameters
  • or (instructions (list[str]) – list[Instruction]): the instructions error applies to.

  • warnings (bool) – display warning if instruction is not in QasmSimulator basis_gates (Default: True).