qulacs.state ====================== .. py:module:: qulacs.state Package Contents ---------------- Functions ~~~~~~~~~ .. list-table:: :header-rows: 0 :widths: auto * - :py:obj:`drop_qubit` - Drop qubits from state * - :py:obj:`from_json` - from json string * - :py:obj:`inner_product` - Get inner product * - :py:obj:`make_mixture` - Create a mixed state * - :py:obj:`make_superposition` - Create superposition of states * - :py:obj:`partial_trace` - * - :py:obj:`permutate_qubit` - * - :py:obj:`tensor_product` - .. py:function:: drop_qubit(state: qulacs.QuantumState, target: List[int], projection: List[int]) -> qulacs.QuantumState Drop qubits from state .. py:function:: from_json(json: str) -> qulacs.QuantumStateBase from json string .. py:function:: inner_product(state_bra: qulacs.QuantumState, state_ket: qulacs.QuantumState) -> complex Get inner product .. py:function:: make_mixture(prob1: complex, state1: qulacs.QuantumStateBase, prob2: complex, state2: qulacs.QuantumStateBase) -> qulacs.DensityMatrix Create a mixed state .. py:function:: make_superposition(coef1: complex, state1: qulacs.QuantumState, coef2: complex, state2: qulacs.QuantumState) -> qulacs.QuantumState Create superposition of states .. py:function:: partial_trace(state: qulacs.QuantumState, target_traceout: List[int]) -> qulacs.DensityMatrix partial_trace(state: qulacs.DensityMatrix, target_traceout: List[int]) -> qulacs.DensityMatrix .. py:function:: permutate_qubit(state: qulacs.QuantumState, qubit_order: List[int]) -> qulacs.QuantumState permutate_qubit(state: qulacs.DensityMatrix, qubit_order: List[int]) -> qulacs.DensityMatrix .. py:function:: tensor_product(state_left: qulacs.QuantumState, state_right: qulacs.QuantumState) -> qulacs.QuantumState tensor_product(state_left: qulacs.DensityMatrix, state_right: qulacs.DensityMatrix) -> qulacs.DensityMatrix