def METHOD_NAME(self, method, device):
    """Test t-gate circuits compiling to backend default basis_gates."""
    backend = self.backend(
        method=method, device=device, extended_stabilizer_metropolis_mixing_time=50
    )
    shots = 500
    circuits = ref_non_clifford.t_gate_circuits_nondeterministic(final_measure=True)
    circuits = transpile(circuits, backend, optimization_level=0)
    result = backend.run(circuits, shots=shots).result()
    targets = ref_non_clifford.t_gate_counts_nondeterministic(shots)
    self.assertSuccess(result)
    self.compare_counts(result, circuits, targets, delta=0.1 * shots)