Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* impl [decompositions] - compact_sun * test [decompositions] - test_sun_reconstruction * refactor [test_decompositions] - compact_sun: asarray instead of asmatrix * refactor [compact_sun] - use `int` instead of `str` for params * impl [decomposition] - compact_sun: decompose U(n) as well as SU(n) * test [decompositions] - compact_sun: add and refactor tests * fix [ops] - Interferometer._decompose: do not decompose identity ensure there is no decomposition when the unitary is the identity * refactor [ops] - _sun_compact_cmds: add global phase into commands * format - black * fix [ops] - Interferometer._decompose: do not decompose identity ensure there is no decomposition when the unitary is the identity * test [ops_decompositions] - Interferomenter: test all available decompositions * typo [decompositions] * rename [test_decomposition] - test class * refactor [sun_compact] - use copy of array * refactor [decomposition] - commands: use mode numeration starting from 0 * fix [ops] - _sun_compact_cmds: phases and cmds * test [integration/decompositions/gaussian] - test_interferometer_sun_compact * test [frontend/ops_decompositions] - parametrize test for different number of modes * remove [notebook] * test [ops_decompositions] - test_identity: bump `num_modes` to 6 * format [black] * fix [ops/Interferometer] - _decompose: `not self.identity or not drop_identity` * fix [test_ops_decompositions] - test_identity: remove meshes from parametrization * docs [ops] - sun_compact and private funcs * fix [decomposition] - code factor * fix [decompositions] - string r prefix * refactor/fix [decompositions] - codefactor * test [decompositions] - test_su2_embeded * format - black * refactor [decompositions] - _build_staircase: use asarray intead of asmatrix * test [decomposition] - test_u3_embeded * impl [test_decompositions] - test_u4_embeded * impl [test_decompositions] - test_u4_embeded * refactor [decompositions] - _build_staircase - use `@` for matrix multiplication - add tolerances to checks - refactor creation of numpy arrays * test [SUnFactorization] - test_u4_embeded * test [SUnDecomposition] - test_embeded_unitary: rename, add missing test case * format - black * refactor [decompositions] - SUn related: clean up docs and code * Apply suggestions from code review Co-authored-by: Theodor <theodor@xanadu.ai> Co-authored-by: Theodor <theodor@xanadu.ai> Co-authored-by: Nicolas Quesada <991946+nquesada@users.noreply.github.com>
- Loading branch information