You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a unit test that validates the output of the algorithm by comparing the original matrix of a circuit and the matrix of the transpiled circuit.
Pseudo code of the test
qc=QuantumCircuit(10)
qc.mcx(range(8), 9)
tqc=transpile(qc)
# apply qubit permutations based on layouts of the transpiled circuit# .....np.assert_almost_equal(Operator(qc).data, Operator(tqc).data)
The text was updated successfully, but these errors were encountered:
What is the expected enhancement?
Add a unit test that validates the output of the algorithm by comparing the original matrix of a circuit and the matrix of the transpiled circuit.
Pseudo code of the test
The text was updated successfully, but these errors were encountered: