dqpu.verifier.trapper.Trapper#

class dqpu.verifier.trapper.Trapper#

Trapper class

__init__()#

Methods

__init__()

trap(qc[, level])

Add traps to the quantum circuits qc

untrap(trapped_qc, traps)

Remove traps from the quantum circuits trapped_qc

untrap_results(traps, results)

Get the results for the original circuit, stripping away trap qubits

verify(traps, results)