Skip to content

Commit

Permalink
Fixes for QuantumLib 1.6.0 and performance improvements (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjbs authored Jan 21, 2025
1 parent cc932ab commit 9081860
Show file tree
Hide file tree
Showing 12 changed files with 1,087 additions and 867 deletions.
471 changes: 284 additions & 187 deletions SQIR/Equivalences.v

Large diffs are not rendered by default.

12 changes: 4 additions & 8 deletions SQIR/ExtractionGateSet.v
Original file line number Diff line number Diff line change
Expand Up @@ -294,22 +294,19 @@ Proof.
unfold uc_eval. simpl.
rewrite Ropp_0.
apply f_equal.
unfold rotation.
solve_matrix; autorewrite with Cexp_db trig_db R_db; lca.
lma'; autorewrite with Cexp_db trig_db R_db; lca.
(* U_U2 *)
unfold uc_eval. simpl.
apply f_equal.
unfold rotation.
solve_matrix; autorewrite with Cexp_db trig_db R_db; lca.
lma'; autorewrite with Cexp_db trig_db R_db; lca.
(* U_CU1 *)
rewrite invert_control.
unfold uc_eval. simpl.
apply control_cong.
unfold uc_equiv. simpl.
rewrite Ropp_0.
apply f_equal.
unfold rotation.
solve_matrix; autorewrite with Cexp_db trig_db R_db; lca.
lma'; autorewrite with Cexp_db trig_db R_db; lca.
split; intro; invert_is_fresh; repeat constructor; auto.
(* U_CH *)
rewrite invert_control.
Expand All @@ -333,8 +330,7 @@ Proof.
unfold uc_equiv. simpl.
rewrite Ropp_0.
apply f_equal.
unfold rotation.
solve_matrix; autorewrite with Cexp_db trig_db R_db; lca.
lma'; autorewrite with Cexp_db trig_db R_db; lca.
split; intro; invert_is_fresh; repeat constructor; auto.
rewrite <- is_fresh_invert.
rewrite <- 2 fresh_control.
Expand Down
Loading

0 comments on commit 9081860

Please sign in to comment.