quri_parts.qulacs package#

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]

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]

cast_to_list(int_sequence)#

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

Parameters:

int_sequence (Sequence[Numerics] | _SupportsArray[dtype] | _NestedSequence[_SupportsArray[dtype]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]) –

Return type:

list[Numerics]

Subpackages#

Submodules#