atlas_q.grover.OracleBase#
- class atlas_q.grover.OracleBase(n_qubits, device='cuda', dtype=torch.complex128)[source]#
Bases:
objectBase class for quantum oracles
Methods
apply(mps)Apply oracle to MPS (marks all target states)
Return number of marked items
mark(mps, state)Mark a specific basis state by flipping its phase
Methods
__init__(n_qubits[, device, dtype])apply(mps)Apply oracle to MPS (marks all target states)
Return number of marked items
mark(mps, state)Mark a specific basis state by flipping its phase