rsnt_translations
56,437
edits
(Created page with "Quantum Circuit Object: qubit_count: 2 q[1]:──H────*── ¦ q[2]:───────X── }} </noinclude> In the above code section, the Hadamard gate creates an equal superposition of |0⟩ and |1⟩ on the first qubit while the CNOT gate (controlled X gate) creates an entanglement between the two qubits. We find an equal superposition of states |00⟩ and |11⟩, which is the first Bell state. The <code>simulate</code> function allows...") |
(Created page with "The <code>readout</code> operation lets you specify which qubits will be measured. The SnowflurryPlots library and the <code>plot_histogram</code> function allow you to visualize the results. <noinclude> {{Command|julia |result=julia> using SnowflurryPlots julia> push!(circuit, readout(1,1), readout(2,2)) julia> plot_histogram(circuit,1000) }} </noinclude> thumb|alt=Résultats de 1000 simulations de l'état de Bell.") Tags: Mobile edit Mobile web edit |
||
Line 47: | Line 47: | ||
</noinclude> | </noinclude> | ||
The <code>readout</code> operation lets you specify which qubits will be measured. The SnowflurryPlots library and the <code>plot_histogram</code> function allow you to visualize the results. | |||
<noinclude> | <noinclude> | ||
{{Command|julia | {{Command|julia | ||
Line 57: | Line 56: | ||
</noinclude> | </noinclude> | ||
[[File:Bell Graph.png|thumb|alt=Résultats de 1000 simulations de l'état de Bell.]] | [[File:Bell Graph.png|thumb|alt=Résultats de 1000 simulations de l'état de Bell.]] | ||