Description Usage Arguments Value Examples
If integer is input, returns the matrix of GroverOracle operation on the integer number of qubits. If ket given as input, applies a GroverOracle operation to the input ket and returns the resulting ket
1 | GroverOracle(w,input)
|
w |
Integer specifying the state to search for, between 0 and 2^n-1 where n is the number of qubits |
input |
Either integer specifying size of operation (in number of qubits it is applied to) or input ket to apply GroverOracle to |
Either the matrix of the GroverOracle gate of the specified size or ket after a GroverOracle operation is applied
1 2 | GroverOracle(0,ket(1,1,1,1,1,1,1,1))
GroverOracle(0,3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.