def write_json_lines(json_objects, filename, mode='wt', encoding=None):
    _make_dirs(filename)
    with io.open(filename, mode=mode, encoding=encoding) as f:
        for json_object in json_objects:
            f.write(json.dumps(json_object, ensure_ascii=False) + '\n')
Apply operators to states in a quantum expression.
dataset/ETHPy150Open chartbeat-labs/textacy/textacy/fileio/write.py/write_json_lines--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/physics/quantum/qapply.py/qapply