Implement build_from_config class method for Pulse and Sequence + tests.