Module: cirq.testing.circuit_compare

Functions

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

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

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(...)