def METHOD_NAME(self, method, device):
    """Test simulation with unitary gate circuit instructions."""
    backend = self.backend(method=method, device=device)
    shots = 100
    circuits = ref_unitary_gate.unitary_gate_circuits_deterministic(final_measure=True)
    targets = ref_unitary_gate.unitary_gate_counts_deterministic(shots)
    circuits = transpile(circuits, backend)
    result = backend.run(circuits, shots=shots).result()
    self.assertSuccess(result)
    self.compare_counts(result, circuits, targets, delta=0)