qiskit.quantum_info.Clifford.from_matrix¶
- classmethod Clifford.from_matrix(matrix)[ソース]¶
Create a Clifford from a unitary matrix.
Note that this function takes exponentially long time w.r.t. the number of qubits.
- パラメータ
matrix (np.array) – A unitary matrix representing a Clifford to be converted.
- 戻り値
the Clifford object for the unitary matrix.
- 戻り値の型
- 例外
QiskitError – if the input is not a Clifford matrix.