qulacs.state

Package Contents

Functions

drop_qubit

Drop qubits from state

from_json

from json string

inner_product

Get inner product

make_mixture

Create a mixed state

make_superposition

Create superposition of states

partial_trace

permutate_qubit

tensor_product

qulacs.state.drop_qubit(state: qulacs.QuantumState, target: List[int], projection: List[int]) qulacs.QuantumState

Drop qubits from state

qulacs.state.from_json(json: str) qulacs.QuantumStateBase

from json string

qulacs.state.inner_product(state_bra: qulacs.QuantumState, state_ket: qulacs.QuantumState) complex

Get inner product

qulacs.state.make_mixture(prob1: complex, state1: qulacs.QuantumStateBase, prob2: complex, state2: qulacs.QuantumStateBase) qulacs.DensityMatrix

Create a mixed state

qulacs.state.make_superposition(coef1: complex, state1: qulacs.QuantumState, coef2: complex, state2: qulacs.QuantumState) qulacs.QuantumState

Create superposition of states

qulacs.state.partial_trace(state: qulacs.DensityMatrix, target_traceout: List[int]) qulacs.DensityMatrix
qulacs.state.partial_trace(state: qulacs.QuantumState, target_traceout: List[int]) qulacs.DensityMatrix
qulacs.state.permutate_qubit(state: qulacs.DensityMatrix, qubit_order: List[int]) qulacs.DensityMatrix
qulacs.state.permutate_qubit(state: qulacs.QuantumState, qubit_order: List[int]) qulacs.QuantumState
qulacs.state.tensor_product(state_left: qulacs.DensityMatrix, state_right: qulacs.DensityMatrix) qulacs.DensityMatrix
qulacs.state.tensor_product(state_left: qulacs.QuantumState, state_right: qulacs.QuantumState) qulacs.QuantumState