aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-07-28 16:45:20 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2021-07-28 17:13:45 +0000
commitf792513defb00a4066d4c0705ca17576e20584d6 (patch)
tree663f5e3d113320664d1b78c9862e3753acd56138
parentc9d5d2dbd29dcffacebd1aef84ddae86afa3c18e (diff)
downloadports-f792513defb00a4066d4c0705ca17576e20584d6.tar.gz
ports-f792513defb00a4066d4c0705ca17576e20584d6.zip
science/py-cirq-{aqt,ionq,pasqal}: New ports: Modules for the Cirq quantum computing framework
-rw-r--r--science/Makefile3
-rw-r--r--science/py-cirq-aqt/Makefile28
-rw-r--r--science/py-cirq-aqt/distinfo3
-rw-r--r--science/py-cirq-aqt/files/example.py18
-rw-r--r--science/py-cirq-aqt/pkg-descr4
-rw-r--r--science/py-cirq-ionq/Makefile27
-rw-r--r--science/py-cirq-ionq/distinfo3
-rw-r--r--science/py-cirq-ionq/files/example.py18
-rw-r--r--science/py-cirq-ionq/pkg-descr4
-rw-r--r--science/py-cirq-pasqal/Makefile27
-rw-r--r--science/py-cirq-pasqal/distinfo3
-rw-r--r--science/py-cirq-pasqal/files/example.py18
-rw-r--r--science/py-cirq-pasqal/pkg-descr4
13 files changed, 160 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index 0981b0aa016a..93c7e6994ad9 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -232,8 +232,11 @@
SUBDIR += py-chainer
SUBDIR += py-chainer-chemistry
SUBDIR += py-chempy
+ SUBDIR += py-cirq-aqt
SUBDIR += py-cirq-core
SUBDIR += py-cirq-google
+ SUBDIR += py-cirq-ionq
+ SUBDIR += py-cirq-pasqal
SUBDIR += py-coards
SUBDIR += py-dipy
SUBDIR += py-dlib
diff --git a/science/py-cirq-aqt/Makefile b/science/py-cirq-aqt/Makefile
new file mode 100644
index 000000000000..c2c3ec7e7ff4
--- /dev/null
+++ b/science/py-cirq-aqt/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= cirq-aqt
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.11.1.20210726
+CATEGORIES= science python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Cirq module to run on AQT quantum computers
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cirq-core>0:science/py-cirq-core@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
+
+USES= python:3.8+
+USE_PYTHON= distutils autoplist
+
+USE_GITHUB= yes
+GH_ACCOUNT= quantumlib
+GH_PROJECT= Cirq
+GH_TAGNAME= 0f9fa3f
+
+WRKSRC_SUBDIR= cirq-aqt
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/science/py-cirq-aqt/distinfo b/science/py-cirq-aqt/distinfo
new file mode 100644
index 000000000000..c6a8436b9ae7
--- /dev/null
+++ b/science/py-cirq-aqt/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1627445045
+SHA256 (quantumlib-Cirq-v0.11.1.20210726-0f9fa3f_GH0.tar.gz) = 66893a0e37bbef79de4ee5e4d020327bd1994aa329c03baf28027706e0af308a
+SIZE (quantumlib-Cirq-v0.11.1.20210726-0f9fa3f_GH0.tar.gz) = 7204025
diff --git a/science/py-cirq-aqt/files/example.py b/science/py-cirq-aqt/files/example.py
new file mode 100644
index 000000000000..d93432d5d3bf
--- /dev/null
+++ b/science/py-cirq-aqt/files/example.py
@@ -0,0 +1,18 @@
+import cirq
+
+# Pick a qubit.
+qubit = cirq.GridQubit(0, 0)
+
+# Create a circuit
+circuit = cirq.Circuit(
+ cirq.X(qubit)**0.5, # Square root of NOT.
+ cirq.measure(qubit, key='m') # Measurement.
+)
+print("Circuit:")
+print(circuit)
+
+# Simulate the circuit several times.
+simulator = cirq.Simulator()
+result = simulator.run(circuit, repetitions=20)
+print("Results:")
+print(result)
diff --git a/science/py-cirq-aqt/pkg-descr b/science/py-cirq-aqt/pkg-descr
new file mode 100644
index 000000000000..7526d4dc215d
--- /dev/null
+++ b/science/py-cirq-aqt/pkg-descr
@@ -0,0 +1,4 @@
+cirq-ionq provides everything you'll need to run Cirq quantum algorithms on AQT
+quantum computers.
+
+WWW: https://github.com/quantumlib/cirq
diff --git a/science/py-cirq-ionq/Makefile b/science/py-cirq-ionq/Makefile
new file mode 100644
index 000000000000..96e7a02b2abf
--- /dev/null
+++ b/science/py-cirq-ionq/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= cirq-ionq
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.11.1.20210726
+CATEGORIES= science python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Cirq module to run on IonQ quantum computers
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cirq-core>0:science/py-cirq-core@${PY_FLAVOR}
+
+USES= python:3.8+
+USE_PYTHON= distutils autoplist
+
+USE_GITHUB= yes
+GH_ACCOUNT= quantumlib
+GH_PROJECT= Cirq
+GH_TAGNAME= 0f9fa3f
+
+WRKSRC_SUBDIR= cirq-ionq
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/science/py-cirq-ionq/distinfo b/science/py-cirq-ionq/distinfo
new file mode 100644
index 000000000000..c6a8436b9ae7
--- /dev/null
+++ b/science/py-cirq-ionq/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1627445045
+SHA256 (quantumlib-Cirq-v0.11.1.20210726-0f9fa3f_GH0.tar.gz) = 66893a0e37bbef79de4ee5e4d020327bd1994aa329c03baf28027706e0af308a
+SIZE (quantumlib-Cirq-v0.11.1.20210726-0f9fa3f_GH0.tar.gz) = 7204025
diff --git a/science/py-cirq-ionq/files/example.py b/science/py-cirq-ionq/files/example.py
new file mode 100644
index 000000000000..d93432d5d3bf
--- /dev/null
+++ b/science/py-cirq-ionq/files/example.py
@@ -0,0 +1,18 @@
+import cirq
+
+# Pick a qubit.
+qubit = cirq.GridQubit(0, 0)
+
+# Create a circuit
+circuit = cirq.Circuit(
+ cirq.X(qubit)**0.5, # Square root of NOT.
+ cirq.measure(qubit, key='m') # Measurement.
+)
+print("Circuit:")
+print(circuit)
+
+# Simulate the circuit several times.
+simulator = cirq.Simulator()
+result = simulator.run(circuit, repetitions=20)
+print("Results:")
+print(result)
diff --git a/science/py-cirq-ionq/pkg-descr b/science/py-cirq-ionq/pkg-descr
new file mode 100644
index 000000000000..17194c8eae66
--- /dev/null
+++ b/science/py-cirq-ionq/pkg-descr
@@ -0,0 +1,4 @@
+cirq-ionq provides everything you'll need to run Cirq quantum algorithms on IonQ
+quantum computers.
+
+WWW: https://github.com/quantumlib/cirq
diff --git a/science/py-cirq-pasqal/Makefile b/science/py-cirq-pasqal/Makefile
new file mode 100644
index 000000000000..21cc294fd31e
--- /dev/null
+++ b/science/py-cirq-pasqal/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= cirq-pasqal
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.11.1.20210726
+CATEGORIES= science python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Cirq module to run on pasqal quantum computers
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cirq-core>0:science/py-cirq-core@${PY_FLAVOR}
+
+USES= python:3.8+
+USE_PYTHON= distutils autoplist
+
+USE_GITHUB= yes
+GH_ACCOUNT= quantumlib
+GH_PROJECT= Cirq
+GH_TAGNAME= 0f9fa3f
+
+WRKSRC_SUBDIR= cirq-pasqal
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/science/py-cirq-pasqal/distinfo b/science/py-cirq-pasqal/distinfo
new file mode 100644
index 000000000000..c6a8436b9ae7
--- /dev/null
+++ b/science/py-cirq-pasqal/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1627445045
+SHA256 (quantumlib-Cirq-v0.11.1.20210726-0f9fa3f_GH0.tar.gz) = 66893a0e37bbef79de4ee5e4d020327bd1994aa329c03baf28027706e0af308a
+SIZE (quantumlib-Cirq-v0.11.1.20210726-0f9fa3f_GH0.tar.gz) = 7204025
diff --git a/science/py-cirq-pasqal/files/example.py b/science/py-cirq-pasqal/files/example.py
new file mode 100644
index 000000000000..d93432d5d3bf
--- /dev/null
+++ b/science/py-cirq-pasqal/files/example.py
@@ -0,0 +1,18 @@
+import cirq
+
+# Pick a qubit.
+qubit = cirq.GridQubit(0, 0)
+
+# Create a circuit
+circuit = cirq.Circuit(
+ cirq.X(qubit)**0.5, # Square root of NOT.
+ cirq.measure(qubit, key='m') # Measurement.
+)
+print("Circuit:")
+print(circuit)
+
+# Simulate the circuit several times.
+simulator = cirq.Simulator()
+result = simulator.run(circuit, repetitions=20)
+print("Results:")
+print(result)
diff --git a/science/py-cirq-pasqal/pkg-descr b/science/py-cirq-pasqal/pkg-descr
new file mode 100644
index 000000000000..d9b16745890d
--- /dev/null
+++ b/science/py-cirq-pasqal/pkg-descr
@@ -0,0 +1,4 @@
+cirq-ionq provides everything you'll need to run Cirq quantum algorithms on
+pasqal quantum computers.
+
+WWW: https://github.com/quantumlib/cirq