def __init__(self, projector_dict: dict[cirq.Qid, int], coefficient: complex = 1):
        """Constructor for ProjectorString

        Args:
            projector_dict: A python dictionary mapping from cirq.Qid to integers. A key value pair
                represents the desired computational basis state for that qubit.
            coefficient: Initial scalar coefficient. Defaults to 1.
        """
        _check_qids_dimension(projector_dict.keys())
        self._projector_dict = projector_dict
        self._coefficient = complex(coefficient)
Constructor for ProjectorString

        Args:
            projector_dict: A python dictionary mapping from cirq.Qid to integers. A key value pair
                represents the desired computational basis state for that qubit.
            coefficient: Initial scalar coefficient. Defaults to 1.
        
cirq-core/cirq/ops/projector.py