def METHOD_NAME(interface, diff_method):
    """Test that step_and_cost function uses the correct arguments of the initial circuit."""
    @qml.qnode(dev, interface=interface, diff_method=diff_method)
    def circuit():
        qml.BasisState(np.array([1, 1, 0, 0]), wires=range(4))
        return qml.expval(qml.PauliZ(0))
    opt = qml.AdaptiveOptimizer()
    circuit, _, _ = opt.step_and_cost(circuit, pool_exc)
    assert circuit.interface == interface
    assert circuit.diff_method == diff_method