PacletInstall[CloudObject["https://wolfr.am/DevWQCF"],ForceVersionInstallTrue]
Out[]=
PacletObject
<<Wolfram`QuantumFramework`
I am using simons algorith in the new textbook :-
I am using simons algorith in the new textbook :-
Hyperlink["https://learn.qiskit.org/course/ch-algorithms/simons-algorithm"]
Here is the code for simon's algorithm for secret number in qiskit which is in WQF
the in that graph is in WQF
Now we need to invert the qiskit circuit using the adapted code above
Now we need to invert the qiskit circuit using the adapted code above
Note the difference between the 2 circuits . Now we just code up this circuit in WQT
Note the difference between the 2 circuits . Now we just code up this circuit in WQT
qc=QuantumCircuitOperator[{QuantumOperator["Hadamard",{1,2,3}],QuantumOperator["CNOT",{2,6}],QuantumOperator["CNOT",{1,4}],QuantumOperator["CNOT",{2,5}],QuantumOperator["CNOT",{3,6}],QuantumOperator["CNOT",{2,5}],QuantumOperator["Hadamard",{1,2,3}],QuantumMeasurementOperator["Computational",{1}],QuantumMeasurementOperator["Computational",{2}],QuantumMeasurementOperator["Computational",{3}]}];
qc["Diagram"]
Out[]=
qc[QuantumState[{"BasisState",{0,0,0,0,0,0}}]]["ProbabilityPlot"]
Out[]=
compare with the Probability plot from qiskit and how the qibits are inverted (the in qiskit is now in WQF