Tomography.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:QGL 作者: BBN-Q 项目源码 文件源码
def state_tomo(seq, qubits, numPulses=4, measChans=None):
    '''
    Apply state tomography readout pulses and measurement.

    Parameters
    -----------
    seq : a single entry list sequence to perform tomography on
    qubits : which qubits to act on
    numPulses : number of readout pulses
    measChans : tuple of measurement channels to readout (defaults to individual qubit channels)
    '''
    if measChans is None:
        measChans = qubits
    measBlock = reduce(operator.mul, [MEAS(q) for q in measChans])

    return [seq + [tomoBlock, measBlock]
            for tomoBlock in create_tomo_blocks(qubits, numPulses)]
评论列表


问题


面经


文章

微信
公众号

扫码关注公众号