in src/braket/default_simulator/simulator.py [0:0]
def _validate_ir_instructions_compatibility(self, circuit_ir):
circuit_instruction_names = [
instr.__class__.__name__.lower().replace("_", "") for instr in circuit_ir.instructions
]
supported_instructions = frozenset(
op.lower().replace("_", "")
for op in self.properties.action[DeviceActionType.JAQCD].supportedOperations
)
no_noise = True
for name in circuit_instruction_names:
if name in _NOISE_INSTRUCTIONS:
no_noise = False
if name not in supported_instructions:
raise TypeError(
'Noise instructions are not supported by the state vector simulator (by default). \