def _get_qubit_index(self, qubit):
for i, bit in enumerate(self.qubit_list):<EOL><INDENT>if qubit == bit:<EOL><INDENT>qindex = i<EOL>break<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise exceptions.VisualizationError("<STR_LIT>")<EOL><DEDENT>return qindex<EOL>
Get the index number for a quantum bit
        Args:
            qubit (tuple): The tuple of the bit of the form
                (register_name, bit_number)
        Returns:
            int: The index in the bit list
        Raises:
            VisualizationError: If the bit isn't found