qlazy/QState.py
def inpro(self, qstate, qid=[]):
        """
        get the inner product with quantum state.

        Parameters
        ----------
        qstate : instance of QState
            one of the two quantum state.
        qid : list of int, default - list of all of the qubit id
            qubit id's list.

        Returns
        -------
        inp : complex
            inner produt (<self|qstate>).

        Notes
        -----
        If 'qid' is set, you can get the inner product for partial
        quantum state. If the specified quantum system are entangled
        with the remaining system, output value is probabilistic,
        while original quantum states do not change.

        """
        if qid == []:
            inp = qstate_inner_product(self, qstate)
        else:
            qs_0 = self.partial(qid=qid)
            qs_1 = qstate.partial(qid=qid)
            inp = qstate_inner_product(qs_0, qs_1)
        return inp

        get the inner product with quantum state.

        Parameters
        ----------
        qstate : instance of QState
            one of the two quantum state.
        qid : list of int, default - list of all of the qubit id
            qubit id's list.

        Returns
        -------
        inp : complex
            inner produt (<self|qstate>).

        Notes
        -----
        If 'qid' is set, you can get the inner product for partial
        quantum state. If the specified quantum system are entangled
        with the remaining system, output value is probabilistic,
        while original quantum states do not change.

        
get the inner product with quantum state.
Parameters

qstate : instance of QState
one of the two quantum state.
qid : list of int, default - list of all of the qubit id
qubit id's list.

Returns

inp : complex
inner produt ().

Notes

If 'qid' is set, you can get the inner product for partial
quantum state. If the specified quantum system are entangled
with the remaining system, output value is probabilistic,
while original quantum states do not change.
get the inner product with quantum state . Parameters qstate : instance of QState one of the two quantum state . qid : list of int default - list of all of the qubit id qubit id ' s list . Returns inp : complex inner produt () . Notes If ' qid ' is set you can get the inner product for partial quantum state . If the specified quantum system are entangled with the remaining system output value is probabilistic while original quantum states do not change .
def inpro(self, qstate, qid=[]):
        if qid == []:
            inp = qstate_inner_product(self, qstate)
        else:
            qs_0 = self.partial(qid=qid)
            qs_1 = qstate.partial(qid=qid)
            inp = qstate_inner_product(qs_0, qs_1)
        return inp
def inpro ( self , qstate , qid = [ ] ) : if qid == [ ] : inp = qstate_inner_product ( self , qstate ) else : qs_0 = self . partial ( qid = qid ) qs_1 = qstate . partial ( qid = qid ) inp = qstate_inner_product ( qs_0 , qs_1 ) return inp
get the inner product with quantum state.
get the inner product with quantum state .
"""
        get the inner product with quantum state.

        Parameters
        ----------
        qstate : instance of QState
            one of the two quantum state.
        qid : list of int, default - list of all of the qubit id
            qubit id's list.

        Returns
        -------
        inp : complex
            inner produt (<self|qstate>).

        Notes
        -----
        If 'qid' is set, you can get the inner product for partial
        quantum state. If the specified quantum system are entangled
        with the remaining system, output value is probabilistic,
        while original quantum states do not change.

        """
self
qstate
qid