"""
Citation generator for PIQS
"""
import sys
import os


def cite(path=None, verbose=True):
    """
    Citation information and bibtex generator for PIQS

    Parameters
    ----------
    path: str
        The complete directory path to generate the bibtex file.
        If not specified then the citation will be generated in cwd
    """
    citation = []

    if verbose:
        print("\n".join(citation))

    if not path:
        path = os.getcwd()

    filename = "qutip.bib"
    with open(os.path.join(path, filename), 'w') as f:
        f.write("\n".join(citation))


if __name__ == "__main__":
    cite()

@@ -356,10 +356,465 @@
  = %5B
+%22%22%22@misc%7B1805.05129,%22%22%22,%0A               %22%22%22Author = %7BNathan Shammah and Shahnawaz Ahmed and Neill Lambert%0A               and Simone De Liberato and Franco Nori%7D,%22%22%22,%0A               %22%22%22Title = %7BOpen quantum systems with local and collective incoherent%0A               processes: Efficient numerical simulation using permutational invariance%7D,%22%22%22,%0A               %22%22%22Year = %7B2018%7D,%22%22%22,%0A               %22%22%22Eprint = %7BarXiv:1805.05129%7D,%22%22%22,%0A               %22%22%22%7D%22%22%22
 %5D%0A
-
 %0A   
@@ -927,13 +927,12 @@
  = %22
-qutip
+piqs
 .bib

Update cite.py