qiskit.quantum_info.Clifford.from_matrix¶
- classmethod Clifford.from_matrix(matrix)[source]¶
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.