Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.Clifford.from_matrix

classmethod Clifford.from_matrix(matrix)[código fonte]

Create a Clifford from a unitary matrix.

Note that this function takes exponentially long time w.r.t. the number of qubits.

Parâmetros

matrix (np.array) – A unitary matrix representing a Clifford to be converted.

Retorno

the Clifford object for the unitary matrix.

Tipo de retorno

Clifford

Levanta

QiskitError – if the input is not a Clifford matrix.