Skip to content

Commit 321dfe1

Browse files
authored
Update SQIR for QuantumLib >= 1.5.0, VOQC for >= 1.1.0 (#59)
* Fixed instance of Qsimpl hanging in SQIR with Qlib >= 1.4 (issue resolved by patch to Qlib, but this fix is independent). Updated .opam files to reflect new compatibility with Qlib >= 1.4, though only >= 1.5 for SQIR as an import issue in Qlib has to be resolved in a way breaking backwards-compatibility. * Fix typo * Version number bump
1 parent 18300ad commit 321dfe1

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

SQIR/UnitaryOps.v

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Require Export UnitarySem.
2-
Require Export QuantumLib.VectorStates.
2+
Require Export QuantumLib.VectorStates QuantumLib.Bits.
33

44
(* This file contains useful operations over unitary programs including:
55
- inversion

VOQC/RemoveZRotationBeforeMeasure.v

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ Proof.
8181
repeat rewrite Mmult_assoc.
8282
Msimpl.
8383
repeat (restore_dims; rewrite <- Mmult_assoc).
84+
(* This line is extraneous with the patch to
85+
Qsimpl / Q_db in QuantumLib > 1.5.0 *)
86+
replace (σx †) with σx by (symmetry; apply σx_hermitian).
8487
Qsimpl.
8588
rewrite Mplus_comm; reflexivity.
8689
rewrite Mplus_comm; reflexivity.

coq-sqir.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "1.3.0"
3+
version: "1.3.1"
44
synopsis: "Coq library for reasoning about quantum circuits"
55
description: """
66
inQWIRE's SQIR is a Coq library for reasoning
@@ -14,7 +14,7 @@ bug-reports: "https://github.com/inQWIRE/SQIR/issues"
1414
depends: [
1515
"dune" {>= "3.8"}
1616
"coq-interval" {>= "4.9.0"}
17-
"coq-quantumlib" {= "1.3.0"}
17+
"coq-quantumlib" {>= "1.5.0"}
1818
"coq" {>= "8.16"}
1919
"odoc" {with-doc}
2020
]

coq-voqc.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "1.3.0"
3+
version: "1.3.1"
44
synopsis: "A verified optimizer for quantum compilation"
55
description: """
66
inQWIRE's VOQC is a Coq library for verified
@@ -14,7 +14,7 @@ bug-reports: "https://github.com/inQWIRE/SQIR/issues"
1414
depends: [
1515
"dune" {>= "2.8"}
1616
"coq-interval" {>= "4.6.1"}
17-
"coq-quantumlib" {>= "1.1.0" < "1.4.0"}
17+
"coq-quantumlib" {>= "1.1.0"}
1818
"coq-sqir" {>= "1.3.0"}
1919
"coq" {>= "8.12"}
2020
"odoc" {with-doc}

dune-project

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(lang dune 3.8)
22
(name coq-sqirvoqc)
3-
(version 1.3.0)
3+
(version 1.3.1)
44
(using coq 0.7)
55
(generate_opam_files true)
66

@@ -17,7 +17,7 @@
1717
)
1818
(depends
1919
(coq-interval (>= 4.9.0))
20-
(coq-quantumlib (= 1.3.0))
20+
(coq-quantumlib (>= 1.5.0))
2121
(coq (>= 8.16))))
2222

2323
(package
@@ -28,6 +28,6 @@
2828
)
2929
(depends
3030
(coq-interval (>= 4.9.0))
31-
(coq-quantumlib (>= 1.3.0))
31+
(coq-quantumlib (>= 1.5.0))
3232
(coq-sqir (>= 1.3.0))
3333
(coq (>= 8.16))))

0 commit comments

Comments
 (0)