def _circuit_diagram_info_(self, args: cirq.CircuitDiagramInfoArgs) -> cirq.CircuitDiagramInfo:
        """Returns a string representation to be used in circuit diagrams."""
        if self._name is not None:
            wire_symbols = ['@'] * self._num_qubits_()
            wire_symbols[-1] = f'@({self._name})'
            return protocols.CircuitDiagramInfo(wire_symbols=wire_symbols)

        if len(self._conjunctions) == 1:
            # Use a simpler diagram if there's only 1 term.
            return protocols.CircuitDiagramInfo(  # pragma: no cover
                wire_symbols=["@" if x == 1 else f"({x})" for x in self._conjunctions[0]]
            )

        wire_symbols = [''] * self._num_qubits_()
        for term in self._conjunctions:
            for q_i, q_val in enumerate(term):
                wire_symbols[q_i] = wire_symbols[q_i] + str(q_val)
        wire_symbols = [f'@({s})' for s in wire_symbols]
        return protocols.CircuitDiagramInfo(wire_symbols=wire_symbols)
Returns a string representation to be used in circuit diagrams.
cirq-core/cirq/ops/control_values.py