qlazy/QState.py
def partial(self, qid=None):
        """
        get the partial quantum state.

        Parameters
        ----------
        qid : list of int, default - list of all of the qubit id
            qubit id's list to get as a partial quantum
            system.

        Returns
        -------
        qs : instance of QState
            partial quantum state.

        Notes
        -----
        If 'qid' is set, specified partial quantum system are got
        after remaining system are measured. So if the specified
        quantum system are entangled with the remaining system, output
        quantum state is probabilistic. If no qubits are specified,
        you get the copy of original quantum state.

        """
        vec = self.get_amp(qid)
        qs = QState(vector=vec)
        return qs

        get the partial quantum state.

        Parameters
        ----------
        qid : list of int, default - list of all of the qubit id
            qubit id's list to get as a partial quantum
            system.

        Returns
        -------
        qs : instance of QState
            partial quantum state.

        Notes
        -----
        If 'qid' is set, specified partial quantum system are got
        after remaining system are measured. So if the specified
        quantum system are entangled with the remaining system, output
        quantum state is probabilistic. If no qubits are specified,
        you get the copy of original quantum state.

        
get the partial quantum state.
Parameters

qid : list of int, default - list of all of the qubit id
qubit id's list to get as a partial quantum
system.

Returns

qs : instance of QState
partial quantum state.

Notes

If 'qid' is set, specified partial quantum system are got
after remaining system are measured. So if the specified
quantum system are entangled with the remaining system, output
quantum state is probabilistic. If no qubits are specified,
you get the copy of original quantum state.
get the partial quantum state . Parameters qid : list of int default - list of all of the qubit id qubit id ' s list to get as a partial quantum system . Returns qs : instance of QState partial quantum state . Notes If ' qid ' is set specified partial quantum system are got after remaining system are measured . So if the specified quantum system are entangled with the remaining system output quantum state is probabilistic . If no qubits are specified you get the copy of original quantum state .
def partial(self, qid=None):
        vec = self.get_amp(qid)
        qs = QState(vector=vec)
        return qs
def partial ( self , qid = None ) : vec = self . get_amp ( qid ) qs = QState ( vector = vec ) return qs
get the partial quantum state.
get the partial quantum state .
"""
        get the partial quantum state.

        Parameters
        ----------
        qid : list of int, default - list of all of the qubit id
            qubit id's list to get as a partial quantum
            system.

        Returns
        -------
        qs : instance of QState
            partial quantum state.

        Notes
        -----
        If 'qid' is set, specified partial quantum system are got
        after remaining system are measured. So if the specified
        quantum system are entangled with the remaining system, output
        quantum state is probabilistic. If no qubits are specified,
        you get the copy of original quantum state.

        """
self
qid