Skip to content
Closed
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
61 changes: 61 additions & 0 deletions packages/qcaml/qcaml.0.1.1/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
opam-version: "2.0"
synopsis: "Experimental OCaml library for quantum computing simulation"
description: """\
QCaml is a lightweight OCaml library for experimenting with quantum states,
gates and measurements. It provides tools for learning quantum computing
concepts and visualizing qubit states on the Bloch sphere.

Features:
- Single qubit state representation with complex amplitudes
- Fundamental quantum gates (Hadamard, Pauli-X/Y/Z)
- Quantum measurements with probabilistic state collapse
- Interactive Bloch sphere visualization using OpenGL/GLUT
- Comprehensive test suite"""
maintainer: "[email protected]"
authors: "Elias GAUTHIER"
license: "Apache-2.0"
tags: [
"quantum"
"computing"
"simulation"
"qubits"
"gates"
"visualization"
"bloch-sphere"
]
homepage: "https://github.com/elias-utf8/qcaml"
doc: "https://elias-utf8.github.io/qcaml/"
bug-reports: "https://github.com/elias-utf8/qcaml/issues"
depends: [
"ocaml" {>= "5.2"}
"dune" {>= "2.9" & >= "2.9"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bound needs adjustment.
On the lower bounds search
- downgrade dune 3.20.2 to 3.6.2 [required by qcaml]
changes it from compiling cleanly to failing with

#=== ERROR while compiling qcaml.0.1.1 ========================================#
# context              2.5.0~alpha1 | linux/x86_64 | ocaml-base-compiler.5.4.0 | pinned(https://github.com/elias-utf8/qcaml/archive/refs/tags/v0.1.2.tar.gz)
# path                 ~/.opam/5.4/.opam-switch/build/qcaml.0.1.1
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p qcaml -j 71 --promote-install-files=false @install
# exit-code            1
# env-file             ~/.opam/log/qcaml-7-2a98d2.env
# output-file          ~/.opam/log/qcaml-7-2a98d2.out
### output ###
# File "examples/dune", line 1, characters 0-0:
# Error: Module "Statistics" is used in several stanzas:
# - examples/dune:1
# - examples/dune:6
# - examples/dune:11
# - examples/dune:16
# To fix this error, you must specify an explicit "modules" field in every
# library, executable, and executables stanzas in this dune file. Note that
# each module cannot appear in more than one "modules" field - it must belong
# to a single library or executable.

I suggest just recreating locally and starting off a bisection, starting off somewhere in the middle, e.g., with
opam install dune.3.17.2 and seeing if things compile cleanly with each investigated version.

"dune-configurator"
"conf-freeglut"
"alcotest" {with-test}
"odoc" {with-doc}
"bisect_ppx" {with-test}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/elias-utf8/qcaml.git"
url {
src: "https://github.com/elias-utf8/qcaml/archive/refs/tags/v0.1.2.tar.gz"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's also something with the version.
This now refers to v0.1.2.tar.gz yet the opam file is named packages/qcaml/qcaml.0.1.1/opam

checksum: [
"md5=21ea66b25de391fff8c6bbc5a0481dd3"
"sha512=2f51ffbec81457559fdd36590469dc4933bc4ccb0ccae9e56e468369964c4aa840776d0c0aa30bef67050799b2c129ec7ec9668fc6ba4ab6b41ebc6bceb2b01a"
]
}
Loading