qiskit/tools/qcvv/tomography.py
def __pauli_meas_gates(circuit, qreg, op):
    """
    Add state measurement gates to a circuit.
    """
    if op not in ['X', 'Y', 'Z']:
        raise QiskitError("There's no X, Y or Z basis for this Pauli "
                          "measurement")

    if op == "X":
        circuit.u2(0., np.pi, qreg)  # H
    elif op == "Y":
        circuit.u2(0., 0.5 * np.pi, qreg)
def __pauli_meas_gates(circuit, qreg, op):
    if op not in ['X', 'Y', 'Z']:
        raise QiskitError("There's no X, Y or Z basis for this Pauli "
                          "measurement")

    if op == "X":
        circuit.u2(0., np.pi, qreg)  # H
    elif op == "Y":
        circuit.u2(0., 0.5 * np.pi, qreg)
def __pauli_meas_gates ( circuit , qreg , op ) : if op not in [ 'X' , 'Y' , 'Z' ] : raise QiskitError ( "There's no X, Y or Z basis for this Pauli " "measurement" ) if op == "X" : circuit . u2 ( 0. , np . pi , qreg ) # H elif op == "Y" : circuit . u2 ( 0. , 0.5 * np . pi , qreg )
Add state measurement gates to a circuit.
Add state measurement gates to a circuit .