Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Cirq

From Wikipedia, the free encyclopedia
Open-source framework for quantum computers
Cirq
Developersquantumlib
Implementation languagePython
LicenseApache license
WebsiteGitHub

Cirq is anopen-sourceframework fornoisy intermediate scale quantum (NISQ) computers.[1]

History

[edit]

Cirq was developed by the Google AI Quantum Team, and the public alpha was announced at the International Workshop on Quantum Software and Quantum Machine Learning on July 18, 2018.[2] A demo byQC Ware showed an implementation of QAOA solving an example of themaximum cut problem being solved on a Cirq simulator.[3]

Usage

[edit]

Quantum programs in Cirq are represented by "Circuit" which is made up of a series of "Moments" representing slices of quantum gates that should be applied at the same time.[4] The programs can be executed on local simulators[5] or against hardware supplied byIonQ,Pasqal,[6]Rigetti, andAlpine Quantum Technologies[7]

The following example shows how to create and measure aBell state in Cirq.

importcirq# Pick qubitsqubit0=cirq.GridQubit(0,0)qubit1=cirq.GridQubit(0,1)# Create a circuitcircuit=cirq.Circuit(cirq.H(qubit0),cirq.CNOT(qubit0,qubit1),cirq.measure(qubit0,key="m0"),cirq.measure(qubit1,key="m1"))

Printing the circuit displays its diagram

print(circuit)# prints# (0, 0): ───H───@───M('m0')───#                │# (0, 1): ───────X───M('m1')───

Simulating the circuit repeatedly shows that the measurements of the qubits are correlated.

simulator=cirq.Simulator()result=simulator.run(circuit,repetitions=5)print(result)# prints# m0=11010# m1=11010

Projects

[edit]

OpenFermion

[edit]

OpenFermion is a library that compiles quantum simulation algorithms to Cirq.[2]

TensorFlow Quantum

[edit]

TensorFlow Quantum is an extension ofTensorFlow that allows TensorFlow to be used to explore hybrid classical-quantum machine learning algorithms.[8]

ReCirq

[edit]

ReCirq is a repository of research projects done using Cirq.[9]

Qsim Cirq

[edit]

Qsim is a high performance wave function simulator that leverages gate fusing, AVS/FMA instructions, and OpenMP to achieve fast simulation rates. Qsimcirq allows one to use qsim from within Cirq.[10]

References

[edit]
  1. ^Fingerhuth, Mark; Babej, Tomáš; Wittek, Peter (2018)."Open source software in quantum computing".PLOS ONE.13 (12) e0208561.arXiv:1812.09167.Bibcode:2018PLoSO..1308561F.doi:10.1371/journal.pone.0208561.PMC 6301779.PMID 30571700.
  2. ^abHo, Alan; Bacon, Dave (2018-07-18)."Announcing Cirq: An Open Source Framework for NISQ Algorithms".Google AI Blog. Google AI Quantum Team. Retrieved2019-03-06.
  3. ^"public_demos/max_cut_cirq.py at master · qcware/public_demos · GitHub".GitHub. 20 July 2018. Archived fromthe original on 20 July 2018. Retrieved29 October 2019.
  4. ^"Cirq Circuits".Google Quantum AI website. Google AI Quantum Team. Retrieved2022-07-06.
  5. ^"Cirq Simulation".Google Quantum AI website. Retrieved2022-07-06.
  6. ^"Pasqal".
  7. ^"AQT".
  8. ^"TensorFlow Quantum".TensorFlow. Retrieved2022-07-06.
  9. ^"ReCirq".Google Quantum Github. Retrieved2022-07-06.
  10. ^"qsimcirq". Retrieved2022-07-06.
General
Theorems
Quantum
communication
Quantum cryptography
Quantum algorithms
Quantum
complexity theory
Quantum
processor benchmarks
Quantum
computing models
Quantum
error correction
Physical
implementations
Quantum optics
Ultracold atoms
Spin-based
Superconducting
Quantum
programming
Retrieved from "https://en.wikipedia.org/w/index.php?title=Cirq&oldid=1315355281"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp