def prep_gate(self, circuit, qreg, op):
    '\n        Add state preparation gates to a circuit.\n\n        Args:\n            circuit (QuantumCircuit): circuit to add a preparation to.\n            qreg (tuple(QuantumRegister,int)): quantum register to apply\n            preparation to.\n            op (tuple(str, int)): the basis label and index for the\n            preparation op.\n        '
    if (self.prep_fun is None):
        pass
    else:
        self.prep_fun(circuit, qreg, op)
Add state preparation gates to a circuit.

Args:
    circuit (QuantumCircuit): circuit to add a preparation to.
    qreg (tuple(QuantumRegister,int)): quantum register to apply
    preparation to.
    op (tuple(str, int)): the basis label and index for the
    preparation op.
def prep_gate(self, circuit, qreg, op):
    '\n        Add state preparation gates to a circuit.\n\n        Args:\n            circuit (QuantumCircuit): circuit to add a preparation to.\n            qreg (tuple(QuantumRegister,int)): quantum register to apply\n            preparation to.\n            op (tuple(str, int)): the basis label and index for the\n            preparation op.\n        '
    if (self.prep_fun is None):
        pass
    else:
        self.prep_fun(circuit, qreg, op)