cutqc2.library.BernsteinVazirani package¶
Submodules¶
cutqc2.library.BernsteinVazirani.bernstein_vazirani module¶
- class cutqc2.library.BernsteinVazirani.bernstein_vazirani.BV(secret=None, barriers=True, measure=False, regname=None)[source]¶
Bases:
objectGenerate an instance of the Bernstein-Vazirani algorithm.
- secret¶
the secret bitstring that BV will find with a single oracle query
- Type:
str
- barriers¶
include barriers in the circuit
- Type:
bool
- measure¶
should a ClassicalRegister and measurements be added to the circuit
- Type:
bool
- regname¶
optional string to name the quantum and classical registers. This allows for the easy concatenation of multiple QuantumCircuits.
- Type:
str
- qr¶
Qiskit QuantumRegister holding all of the quantum bits
- Type:
QuantumRegister
- circ¶
Qiskit QuantumCircuit that represents the uccsd circuit
- Type:
QuantumCircuit