<jupyter_start><jupyter_text>Bernstein-Vazarani<jupyter_code>#Simulate on qasm_simulator
bV_sim = berVaz.sim('101')
bV_sim
plot_histogram(bV_sim[1])
#Run on a real quantum device with circuit drawn on matplotlib
bV_run = berVaz.run('101', device='ibmq_16_melbourne', plotTool='mpl', shots=1000)
bV_run
bV_run[0]
plot_histogram(bV_run[1].get_counts(bV_run[2]))<jupyter_output><empty_output><jupyter_text>Deutsch–Jozsa<jupyter_code>#Simulate
dJ_sim = deuJoz.sim(3,'b')
dJ_sim
plot_histogram(dJ_sim[1])
#Run on a real quantum device with circuit drawn on matplotlib
dJ_run = deuJoz.run(3, funcType='c', device='ibmq_16_melbourne', plotTool='mpl', shots=1000)
dJ_run
dJ_run[0]
plot_histogram(dJ_run[1].get_counts(dJ_run[2]))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13466666666666666, 'fraction_numerical': 0.037333333333333336, 'mean_word_length': 11.311475409836065, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '61678', 'license': 'MIT', 'n_tokens_mistral': 347, 'n_tokens_neox': 332, 'n_words': 50, 'path': 'Documentation_v1.ipynb', 'repo_name': 'theheavygluon/QuantAlgs', 'size': '750'}