dqpu.verifier.basictrapper.BasicTrapper#

class dqpu.verifier.basictrapper.BasicTrapper#

A basic trapper, just adds n qubits initialized in a random choice of |0> and |1>

__init__()#

Methods

__init__()

trap(qc[, level])

Add traps to the quantum circuit

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)

Get bitstring result for trap qubits, and check for the result