TestSuite: progress reports and de-bugging!#

Use the test suite below to check your progress. You may also use these tests to debug your implementations as you go!

We’ll use the test suite as an autograder for the challenge.

class src.xyz_evolution_test.XYZEvolutionTestSuite[source]#

Bases: object

A class to test your implementation of the various phases of this challenge.

test_circuit_compression(trotter_num=5)[source]#

Test your implementation of the full compression scheme by checking that the unitary operator implemented by your compressed circuit indeed matches the expected operation.

test_mirror_update(num_points=3)[source]#

Test your implementation of the mirror update step, which is a sequence of YBE updates.

test_uxyz(num_points=10)[source]#

Test your implementation of the \(B_{XYZ}\) block.

test_uxz(num_points=10)[source]#

Test your implementation of the \(B_{XZ}\) block.

test_xyz_evolution(num_qubits=5, num_points=3)[source]#

Test your implementation of the \(XYZ\) time propagator.

test_xyzm_evolution(num_qubits=5, num_points=3)[source]#

Test your implementation of the \(XYZ\) time propagator under a transverse magnetic field.

test_ybe_update(num_points=3)[source]#

Test your implementation of the YBE parameter update step.