Optimizing for an arbitrary perfect entangler. II. Application