10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-06-21 12:42:13 +02:00
quantum_package/ocaml/Primitive.ml

19 lines
283 B
OCaml
Raw Normal View History

2014-08-13 17:54:32 +02:00
open Qptypes;;
open Core.Std;;
type t =
{ sym : Symmetry.t ;
2014-10-23 14:42:14 +02:00
expo : AO_expo.t ;
2014-10-25 21:24:21 +02:00
} with sexp
2014-08-13 17:54:32 +02:00
let to_string p =
let { sym = s ; expo = e } = p in
Printf.sprintf "(%s, %f)"
(Symmetry.to_string s)
2014-10-23 14:42:14 +02:00
(AO_expo.to_float e)
2014-08-13 17:54:32 +02:00
;;
2014-10-27 01:14:18 +01:00
let of_sym_expo s e =
{ sym=s ; expo=e}
;;