def _from_json_dict_(
        cls, target_state: np.ndarray, name: str, **kwargs
    ) -> StatePreparationChannel:
        """Recreates the channel object from it's serialized form

        Args:
            target_state: the state to prepare using this channel
            name: the name of the gate for printing in circuit diagrams
            kwargs: other keyword arguments, ignored
        """
        return cls(target_state=np.array(target_state), name=name)
Recreates the channel object from it's serialized form

        Args:
            target_state: the state to prepare using this channel
            name: the name of the gate for printing in circuit diagrams
            kwargs: other keyword arguments, ignored
        
cirq-core/cirq/ops/state_preparation_channel.py