git: f792513defb0 - main - science/py-cirq-{aqt, ionq, pasqal}: New ports: Modules for the Cirq quantum computing framework
Yuri Victorovich
yuri at FreeBSD.org
Wed Jul 28 17:13:50 UTC 2021
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f792513defb00a4066d4c0705ca17576e20584d6
commit f792513defb00a4066d4c0705ca17576e20584d6
Author: Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-07-28 16:45:20 +0000
Commit: Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-07-28 17:13:45 +0000
science/py-cirq-{aqt,ionq,pasqal}: New ports: Modules for the Cirq quantum computing framework
---
science/Makefile | 3 +++
science/py-cirq-aqt/Makefile | 28 ++++++++++++++++++++++++++++
science/py-cirq-aqt/distinfo | 3 +++
science/py-cirq-aqt/files/example.py | 18 ++++++++++++++++++
science/py-cirq-aqt/pkg-descr | 4 ++++
science/py-cirq-ionq/Makefile | 27 +++++++++++++++++++++++++++
science/py-cirq-ionq/distinfo | 3 +++
science/py-cirq-ionq/files/example.py | 18 ++++++++++++++++++
science/py-cirq-ionq/pkg-descr | 4 ++++
science/py-cirq-pasqal/Makefile | 27 +++++++++++++++++++++++++++
science/py-cirq-pasqal/distinfo | 3 +++
science/py-cirq-pasqal/files/example.py | 18 ++++++++++++++++++
science/py-cirq-pasqal/pkg-descr | 4 ++++
13 files changed, 160 insertions(+)
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 at 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 at 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 at 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
More information about the dev-commits-ports-all
mailing list