Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SQIR for QuantumLib >= 1.5.0, VOQC for >= 1.1.0 #59

Merged
merged 3 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SQIR/UnitaryOps.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Require Export UnitarySem.
Require Export QuantumLib.VectorStates.
Require Export QuantumLib.VectorStates QuantumLib.Bits.

(* This file contains useful operations over unitary programs including:
- inversion
Expand Down Expand Up @@ -66,7 +66,7 @@
gridify.
do 2 (apply f_equal2; try reflexivity).
unfold rotation.
solve_matrix; try rewrite Ropp_div; autorewrite with Cexp_db trig_db; lca.

Check warning on line 69 in SQIR/UnitaryOps.v

View workflow job for this annotation

GitHub Actions / build-sqir (8.18, default)

Notation Ropp_div is deprecated since 8.19. Use Rdiv_opp_l.

Check warning on line 69 in SQIR/UnitaryOps.v

View workflow job for this annotation

GitHub Actions / build-sqir (8.18, default)

Notation Ropp_div is deprecated since 8.19. Use Rdiv_opp_l.

Check warning on line 69 in SQIR/UnitaryOps.v

View workflow job for this annotation

GitHub Actions / build-sqir (8.18, default)

Notation Ropp_div is deprecated since 8.19. Use Rdiv_opp_l.

Check warning on line 69 in SQIR/UnitaryOps.v

View workflow job for this annotation

GitHub Actions / build-sqir (8.18, default)

Notation Ropp_div is deprecated since 8.19. Use Rdiv_opp_l.

Check warning on line 69 in SQIR/UnitaryOps.v

View workflow job for this annotation

GitHub Actions / build-sqir (8.18, default)

Notation Ropp_div is deprecated since 8.19. Use Rdiv_opp_l.

Check warning on line 69 in SQIR/UnitaryOps.v

View workflow job for this annotation

GitHub Actions / build-sqir (8.18, default)

Notation Ropp_div is deprecated since 8.19. Use Rdiv_opp_l.

Check warning on line 69 in SQIR/UnitaryOps.v

View workflow job for this annotation

GitHub Actions / build-sqir (8.18, default)

Notation Ropp_div is deprecated since 8.19. Use Rdiv_opp_l.

Check warning on line 69 in SQIR/UnitaryOps.v

View workflow job for this annotation

GitHub Actions / build-sqir (8.18, default)

Notation Ropp_div is deprecated since 8.19. Use Rdiv_opp_l.

Check warning on line 69 in SQIR/UnitaryOps.v

View workflow job for this annotation

GitHub Actions / build-sqir (8.18, default)

Notation Ropp_div is deprecated since 8.19. Use Rdiv_opp_l.
Qed.
Local Opaque X.

Expand All @@ -79,7 +79,7 @@
gridify.
do 2 (apply f_equal2; try reflexivity).
unfold rotation.
solve_matrix; try rewrite Ropp_div; autorewrite with Cexp_db trig_db; lca.

Check warning on line 82 in SQIR/UnitaryOps.v

View workflow job for this annotation

GitHub Actions / build-sqir (8.18, default)

Notation Ropp_div is deprecated since 8.19. Use Rdiv_opp_l.
Qed.
Local Opaque H.

Expand Down
3 changes: 3 additions & 0 deletions VOQC/RemoveZRotationBeforeMeasure.v
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ Proof.
repeat rewrite Mmult_assoc.
Msimpl.
repeat (restore_dims; rewrite <- Mmult_assoc).
(* This line is extraneous with the patch to
Qsimpl / Q_db in QuantumLib > 1.5.0 *)
replace (σx †) with σx by (symmetry; apply σx_hermitian).
Qsimpl.
rewrite Mplus_comm; reflexivity.
rewrite Mplus_comm; reflexivity.
Expand Down
4 changes: 2 additions & 2 deletions coq-sqir.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "1.3.0"
version: "1.3.1"
synopsis: "Coq library for reasoning about quantum circuits"
description: """
inQWIRE's SQIR is a Coq library for reasoning
Expand All @@ -14,7 +14,7 @@ bug-reports: "https://github.com/inQWIRE/SQIR/issues"
depends: [
"dune" {>= "3.8"}
"coq-interval" {>= "4.9.0"}
"coq-quantumlib" {= "1.3.0"}
"coq-quantumlib" {>= "1.5.0"}
adrianleh marked this conversation as resolved.
Show resolved Hide resolved
"coq" {>= "8.16"}
"odoc" {with-doc}
]
Expand Down
4 changes: 2 additions & 2 deletions coq-voqc.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "1.3.0"
version: "1.3.1"
synopsis: "A verified optimizer for quantum compilation"
description: """
inQWIRE's VOQC is a Coq library for verified
Expand All @@ -14,7 +14,7 @@ bug-reports: "https://github.com/inQWIRE/SQIR/issues"
depends: [
"dune" {>= "2.8"}
"coq-interval" {>= "4.6.1"}
"coq-quantumlib" {>= "1.1.0" < "1.4.0"}
"coq-quantumlib" {>= "1.1.0"}
"coq-sqir" {>= "1.3.0"}
"coq" {>= "8.12"}
"odoc" {with-doc}
Expand Down
6 changes: 3 additions & 3 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(lang dune 3.8)
(name coq-sqirvoqc)
(version 1.3.0)
(version 1.3.1)
(using coq 0.7)
(generate_opam_files true)

Expand All @@ -17,7 +17,7 @@
)
(depends
(coq-interval (>= 4.9.0))
(coq-quantumlib (= 1.3.0))
(coq-quantumlib (>= 1.5.0))
(coq (>= 8.16))))

(package
Expand All @@ -28,6 +28,6 @@
)
(depends
(coq-interval (>= 4.9.0))
(coq-quantumlib (>= 1.3.0))
(coq-quantumlib (>= 1.5.0))
(coq-sqir (>= 1.3.0))
(coq (>= 8.16))))
Loading