qml.labs.estimator_beta.MarkClean

class MarkClean(wires)[source]

Bases: MarkQubits

A class used to mark that certain wires are in the zero state.

This class can be used in quantum circuit (qfunc) to mark certain algorithmic wires as being in the zero state. Its primary use is to mark the state of algorithmic qubits as clean so that they can be used as auxiliary qubits by other subroutines.

Parameters:

wires (WiresLike) – the label(s) of the wires to be marked

Example

>>> import pennylane.labs.estimator_beta as qre
>>> qre.MarkClean(wires=[0,1,2])
MarkClean(Wires([0, 1, 2]))

equal(other)

Check if two MarkQubits instances are equal.

queue([context])

Adds the MarkQubit instance to the active queue.

equal(other)

Check if two MarkQubits instances are equal.

queue(context=<class 'pennylane.queuing.QueuingManager'>)

Adds the MarkQubit instance to the active queue.