superposition_basis(nqubits) is the equal superposition of all basis
states, OracleGate(nqubits, f) flips the sign of the states for which
the R function f is TRUE, WGate(nqubits) is the Grover diffusion
operator, and grover_iteration() and apply_grover() run the
algorithm, as in sympy.physics.quantum.grover.
Usage
superposition_basis(nqubits)
OracleGate(...)
WGate(...)
grover_iteration(qstate, oracle)
apply_grover(oracle, nqubits, iterations = NULL)