def tomography_basis(basis, prep_fun=None, meas_fun=None):
    '\n    Generate a TomographyBasis object.\n\n    See TomographyBasis for further details.abs\n\n    Args:\n        prep_fun (callable) optional: the function which adds preparation\n            gates to a circuit.\n        meas_fun (callable) optional: the function which adds measurement\n            gates to a circuit.\n\n    Returns:\n        TomographyBasis: A tomography basis.\n    '
    ret = TomographyBasis(basis)
    ret.prep_fun = prep_fun
    ret.meas_fun = meas_fun
    return ret
Generate a TomographyBasis object.

See TomographyBasis for further details.abs

Args:
    prep_fun (callable) optional: the function which adds preparation
        gates to a circuit.
    meas_fun (callable) optional: the function which adds measurement
        gates to a circuit.

Returns:
    TomographyBasis: A tomography basis.
def tomography_basis(basis, prep_fun=None, meas_fun=None):
    '\n    Generate a TomographyBasis object.\n\n    See TomographyBasis for further details.abs\n\n    Args:\n        prep_fun (callable) optional: the function which adds preparation\n            gates to a circuit.\n        meas_fun (callable) optional: the function which adds measurement\n            gates to a circuit.\n\n    Returns:\n        TomographyBasis: A tomography basis.\n    '
    ret = TomographyBasis(basis)
    ret.prep_fun = prep_fun
    ret.meas_fun = meas_fun
    return ret