Module: cirq.testing.circuit_compare

Functions

assert_circuits_have_same_unitary_given_final_permutation(...): Asserts two circuits have the same unitary up to a final permutation of qubits.

assert_circuits_with_terminal_measurements_are_equivalent(...): Determines if two circuits have equivalent effects.

assert_has_consistent_apply_channel(...): Tests whether a value's _applychannel is correct.

assert_has_consistent_apply_unitary(...): Tests whether a value's _applyunitary is correct.

assert_has_consistent_apply_unitary_for_various_exponents(...): Tests whether a value's _applyunitary is correct.

assert_has_consistent_qid_shape(...): Tests whether a value's _qid_shape_ and _num_qubits_ are correct and consistent.

assert_has_diagram(...): Determines if a given circuit has the desired text diagram.

assert_same_circuits(...): Asserts that two circuits are identical, with a descriptive error.

highlight_text_differences(...)