Delen via


utils Package

Functions

dump_operation

Returns a square matrix of complex numbers representing the operation performed.

dump_operation(operation: str, num_qubits: int) -> List[List[complex]]

Parameters

Name Description
operation
Required

The operation to be performed, which must operate on a list of qubits.

num_qubits
Required

The number of qubits to be used.

Returns

Type Description

The matrix representing the operation.