def parse_quantum_processor_path(path: str) -> dict[str, str]:
        """Parses a quantum_processor path into its component segments."""
        m = re.match(r"^projects/(?P<project_id>.+?)/processors/(?P<processor_id>.+?)$", path)
        return m.groupdict() if m else {}
Parses a quantum_processor path into its component segments.
cirq-google/cirq_google/cloud/quantum_v1alpha1/services/quantum_engine_service/client.py