QXel.functional.functionals module

Python wrappers around the low-level tensor and result kernels in QXel.

QXel.functional.functionals.apply_operator(operator, tensor, stream=None)

Apply one operator to tensor in place.

QXel.functional.functionals.apply_partial_result(result, tensor, global_offset, local_offset, stream=None)

Accumulate a partial result from tensor into result.

QXel.functional.functionals.permute_columns_after_alltoall(tensor, num_qubits, num_distributed_qubits, stream=None)

Restore density-matrix column order after distributed communication.

QXel.functional.functionals.set_compute_type(compute_type)

Select the native kernel backend used by functional helpers.

QXel.functional.functionals.get_compute_type()

Return the currently selected native kernel backend.

QXel.functional.functionals.initialize_basisZ(tensor, stream=None)

Initialize tensor to the computational-basis |0...0> state.

QXel.functional.functionals.initialize_zero(tensor, stream=None)

Fill tensor with zeros.