quri_parts.qulacs package#

quri_parts.qulacs.QulacsStateT#

A type alias for state classes supported by Qulacs estimators. Qulacs estimators support both of circuit states and state vectors.

alias of Union[CircuitQuantumState, QuantumStateVector]

quri_parts.qulacs.QulacsParametricStateT#

A type alias for parametric state classes supported by Qulacs estimators. Qulacs estimators support both of circuit states and state vectors.

alias of Union[ParametricCircuitQuantumState, ParametricQuantumStateVector]

quri_parts.qulacs.cast_to_list(int_sequence: Sequence[Numerics] | _SupportsArray[dtype] | _NestedSequence[_SupportsArray[dtype]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]) list[Numerics]#

Cast a sequence of numerics (int, float, complex) or an array to a list of the same type.

This is a workaround for too strict type annotation of Qulacs

Subpackages#

Submodules#