[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10269":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":47,"readmeContent":48,"aiSummary":49,"trendingCount":16,"starSnapshotCount":16,"syncStatus":50,"lastSyncTime":51,"discoverSource":52},10269,"Cirq","quantumlib\u002FCirq","quantumlib","Python framework for creating, editing, and running Noisy Intermediate-Scale Quantum (NISQ) circuits.","https:\u002F\u002Fquantumai.google\u002Fcirq",null,"Python",4984,1226,192,101,0,1,8,36,5,70.87,"Apache License 2.0",false,"main",true,[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"algorithms","api","cirq","google","google-quantum","nisq","python","quantum","quantum-algorithms","quantum-circuit","quantum-circuit-simulator","quantum-computer-simulator","quantum-computing","quantum-development-kit","quantum-information","quantum-programming","quantum-programming-language","quantum-simulation","sdk","simulation","2026-06-12 04:00:49","\u003C!-- H1 title omitted because our logo acts as the title. -->\n\u003Cdiv align=\"center\">\n\n\u003Cimg width=\"300px\" alt=\"Cirq logo\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fquantumlib\u002FCirq\u002Frefs\u002Fheads\u002Fmain\u002Fdocs\u002Fimages\u002FCirq_logo_color.svg\">\n\nPython package for writing, manipulating, and running [quantum\ncircuits](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FQuantum_circuit) on quantum computers\nand simulators.\n\n[![Licensed under the Apache 2.0\nlicense](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-Apache%202.0-3c60b1.svg?logo=opensourceinitiative&logoColor=white&style=flat-square)](https:\u002F\u002Fgithub.com\u002Fquantumlib\u002FCirq\u002Fblob\u002Fmain\u002FLICENSE)\n[![Compatible with Python versions 3.11 and\nhigher](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPython-3.11+-fcbc2c.svg?style=flat-square&logo=python&logoColor=white)](https:\u002F\u002Fwww.python.org\u002Fdownloads\u002F)\n[![OpenSSF Best Practices](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdynamic\u002Fjson?label=OpenSSF&logo=springsecurity&logoColor=white&style=flat-square&colorA=gray&colorB=d56420&suffix=%25&query=$.badge_percentage_0&uri=https:\u002F\u002Fbestpractices.coreinfrastructure.org\u002Fprojects\u002F10063.json)](https:\u002F\u002Fwww.bestpractices.dev\u002Fprojects\u002F10063)\n[![Cirq project on\nPyPI](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fcirq.svg?logo=python&logoColor=white&label=PyPI&style=flat-square&color=fcbc2c)](https:\u002F\u002Fpypi.org\u002Fproject\u002Fcirq)\n[![Archived in\nZenodo](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F10.5281%2Fzenodo.4062499-gray.svg?label=DOI&logo=doi&logoColor=white&style=flat-square&colorA=gray&colorB=3c60b1)](https:\u002F\u002Fdoi.org\u002F10.5281\u002Fzenodo.4062499)\n\n[Features](#features) &ndash;\n[Installation](#installation) &ndash;\n[Quick Start](#quick-start--hello-qubit-example) &ndash;\n[Documentation](#cirq-documentation) &ndash;\n[Integrations](#integrations) &ndash;\n[Community](#community) &ndash;\n[Citing Cirq](#citing-cirq) &ndash;\n[Contact](#contact)\n\n\u003C\u002Fdiv>\n\n## Features\n\nCirq provides useful abstractions for dealing with today’s [noisy\nintermediate-scale quantum](https:\u002F\u002Farxiv.org\u002Fabs\u002F1801.00862) (NISQ) computers,\nwhere the details of quantum hardware are vital to achieving state-of-the-art\nresults. Some of its features include:\n\n*   Flexible gate definitions and custom gates\n*   Parameterized circuits with symbolic variables\n*   Circuit transformation, compilation and optimization\n*   Hardware device modeling\n*   Noise modeling\n*   Multiple built-in quantum circuit simulators\n*   Integration with [qsim](https:\u002F\u002Fgithub.com\u002Fquantumlib\u002Fqsim) for\n    high-performance simulation\n*   Interoperability with [NumPy](https:\u002F\u002Fnumpy.org) and\n    [SciPy](https:\u002F\u002Fscipy.org)\n*   Cross-platform compatibility\n\n## Installation\n\nCirq supports Python version 3.11 and later, and can be used on Linux, MacOS,\nand Windows, as well as [Google Colab](https:\u002F\u002Fcolab.google). For complete\ninstallation instructions, please refer to the\n[Install](https:\u002F\u002Fquantumai.google\u002Fcirq\u002Fstart\u002Finstall) section of the online\nCirq documentation.\n\n## Quick Start – “Hello Qubit” Example\n\nHere is a simple example to get you up and running with Cirq after you have\ninstalled it. Start a Python interpreter, and then type the following:\n\n```python\nimport cirq\n\n# Pick a qubit.\nqubit = cirq.GridQubit(0, 0)\n\n# Create a circuit.\ncircuit = cirq.Circuit(\n    cirq.X(qubit)**0.5,  # Square root of NOT.\n    cirq.measure(qubit, key='m')  # Measurement.\n)\nprint(\"Circuit:\")\nprint(circuit)\n\n# Simulate the circuit several times.\nsimulator = cirq.Simulator()\nresult = simulator.run(circuit, repetitions=20)\nprint(\"Results:\")\nprint(result)\n```\n\nPython should then print output similar to this:\n\n```text\nCircuit:\n(0, 0): ───X^0.5───M('m')───\nResults:\nm=11000111111011001000\n```\n\nCongratulations! You have run your first quantum simulation in Cirq. You can\ncontinue to learn more by exploring the [many Cirq tutorials](#tutorials)\ndescribed below.\n\n## Cirq Documentation\n\nThe primary documentation site for Cirq is the [Cirq home page on the Quantum\nAI website](https:\u002F\u002Fquantumai.google\u002Fcirq). There and elsewhere, a variety of\ndocumentation for Cirq is available.\n\n### Tutorials\n\n*   [Video tutorials] on YouTube are an engaging way to learn Cirq.\n*   [Jupyter notebook-based tutorials] let you learn Cirq from your browser – no\n    installation needed.\n*   [Text-based tutorials] on the Cirq home page are great when combined with a\n    local [installation] of Cirq on your computer. After starting with the\n    [basics], you'll be ready to dive into tutorials on circuit building and\n    circuit simulation under the [Build] and [Simulate] tabs, respectively. Check\n    out the other tabs for more!\n\n[Video tutorials]: https:\u002F\u002Fwww.youtube.com\u002Fplaylist?list=PLpO2pyKisOjLVt_tDJ2K6ZTapZtHXPLB4\n[Jupyter notebook-based tutorials]: https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fquantumlib\u002FCirq\n[Text-based tutorials]: https:\u002F\u002Fquantumai.google\u002Fcirq\n[installation]: https:\u002F\u002Fquantumai.google\u002Fcirq\u002Fstart\u002Finstall\n[basics]: https:\u002F\u002Fquantumai.google\u002Fcirq\u002Fstart\u002Fbasics\n[Build]: https:\u002F\u002Fquantumai.google\u002Fcirq\u002Fbuild\n[Simulate]: https:\u002F\u002Fquantumai.google\u002Fcirq\u002Fsimula\n\n### Reference Documentation\n\n*   Docs for the [current stable release] correspond to what you get with\n    `pip install cirq`.\n*   Docs for the [pre-release] correspond to what you get with\n    `pip install --upgrade cirq~=1.0.dev`.\n\n[current stable release]: https:\u002F\u002Fquantumai.google\u002Freference\u002Fpython\u002Fcirq\u002Fall_symbols\n[pre-release]: https:\u002F\u002Fquantumai.google\u002Freference\u002Fpython\u002Fcirq\u002Fall_symbols?version=nightly\n\n### Examples\n\n*   The [examples subdirectory](.\u002Fexamples\u002F) of the Cirq GitHub repo has many\n    programs illustrating the application of Cirq to everything from common\n    textbook algorithms to more advanced methods.\n*   The [Experiments page](https:\u002F\u002Fquantumai.google\u002Fcirq\u002Fexperiments\u002F) on the\n    Cirq documentation site has yet more examples, from simple to advanced.\n\n### Change log\n\n*   The [Cirq releases](https:\u002F\u002Fgithub.com\u002Fquantumlib\u002Fcirq\u002Freleases) page on\n    GitHub lists the changes in each release.\n\n## Integrations\n\nGoogle Quantum AI has a suite of open-source software that lets you do more\nwith Cirq. From high-performance simulators, to novel tools for expressing and\nanalyzing fault-tolerant quantum algorithms, our software stack lets you\ndevelop quantum programs for a variety of applications.\n\n\u003Cdiv align=\"center\">\n\n| Your interests                                  | Software to explore  |\n|-------------------------------------------------|----------------------|\n| Quantum algorithms?\u003Cbr>Fault-tolerant quantum computing (FTQC)? | [Qualtran] |\n| Large circuits and\u002For a lot of simulations?     | [qsim] |\n| Circuits with thousands of qubits and millions of Clifford operations? | [Stim] |\n| Quantum error correction (QEC)?                 | [Stim] |\n| Chemistry and\u002For material science?              | [OpenFermion]\u003Cbr>[OpenFermion-FQE]\u003Cbr>[OpenFermion-PySCF]\u003Cbr>[OpenFermion-Psi4] |\n| Quantum machine learning (QML)?                 | [TensorFlow Quantum] |\n| Real experiments using Cirq?                    | [ReCirq] |\n\n\u003C\u002Fdiv>\n\n[Qualtran]: https:\u002F\u002Fgithub.com\u002Fquantumlib\u002Fqualtran\n[qsim]: https:\u002F\u002Fgithub.com\u002Fquantumlib\u002Fqsim\n[Stim]: https:\u002F\u002Fgithub.com\u002Fquantumlib\u002Fstim\n[OpenFermion]: https:\u002F\u002Fgithub.com\u002Fquantumlib\u002Fopenfermion\n[OpenFermion-FQE]: https:\u002F\u002Fgithub.com\u002Fquantumlib\u002FOpenFermion-FQE\n[OpenFermion-PySCF]: https:\u002F\u002Fgithub.com\u002Fquantumlib\u002FOpenFermion-PySCF\n[OpenFermion-Psi4]: https:\u002F\u002Fgithub.com\u002Fquantumlib\u002FOpenFermion-Psi4\n[TensorFlow Quantum]: https:\u002F\u002Fgithub.com\u002Ftensorflow\u002Fquantum\n[ReCirq]: https:\u002F\u002Fgithub.com\u002Fquantumlib\u002FReCirq\n\n## Community\n\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fquantumlib\u002FCirq\u002Fgraphs\u002Fcontributors\">\u003Cimg\nwidth=\"150em\" alt=\"Total number of contributors to Cirq\"\nsrc=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fcontributors\u002Fquantumlib\u002Fcirq?label=Contributors&logo=github&color=ccc&style=flat-square\"\u002F>\u003C\u002Fa>\n\nCirq has benefited from [contributions] by over 200 people and\ncounting. We are dedicated to cultivating an open and inclusive community to\nbuild software for quantum computers, and have a community [code of conduct].\n\n[contributions]: https:\u002F\u002Fgithub.com\u002Fquantumlib\u002FCirq\u002Fgraphs\u002Fcontributors\n[code of conduct]: https:\u002F\u002Fgithub.com\u002Fquantumlib\u002Fcirq\u002Fblob\u002Fmain\u002FCODE_OF_CONDUCT.md\n\n### Announcements\n\nStay on top of Cirq developments using the approach that best suits your needs:\n\n*   For releases and major announcements: sign up to the low-volume mailing list\n    [`cirq-announce`].\n*   For releases only:\n    *   Via GitHub notifications: configure [repository notifications] for Cirq.\n    *   Via Atom\u002FRSS from GitHub: subscribe to the GitHub [Cirq releases Atom feed].\n    *   Via RSS from PyPI: subscribe to the [PyPI releases RSS feed] for Cirq.\n\nCirq releases take place approximately every quarter.\n\n[`cirq-announce`]: https:\u002F\u002Fgroups.google.com\u002Fforum\u002F#!forum\u002Fcirq-announce\n[repository notifications]: https:\u002F\u002Fdocs.github.com\u002Fgithub\u002Fmanaging-subscriptions-and-notifications-on-github\u002Fconfiguring-notifications\n[Cirq releases Atom feed]: https:\u002F\u002Fgithub.com\u002Fquantumlib\u002FCirq\u002Freleases.atom\n[PyPI releases RSS feed]: https:\u002F\u002Fpypi.org\u002Frss\u002Fproject\u002Fcirq\u002Freleases.xml\n\n### Questions and Discussions\n\n*   Have questions about Cirq? Post them to the [Quantum Computing\n    Stack Exchange] and tag them with [`cirq`]. You can also search past\n    questions using that tag – it's a great way to learn!\n*   Want meet other Cirq developers and participate in discussions? Join\n    _Cirq Cynq_, our biweekly virtual meeting of contributors. Sign up\n    to [_cirq-dev_] to get an automatic meeting invitation!\n\n[Quantum Computing Stack Exchange]: https:\u002F\u002Fquantumcomputing.stackexchange.com\n[`cirq`]: https:\u002F\u002Fquantumcomputing.stackexchange.com\u002Fquestions\u002Ftagged\u002Fcirq\n[_cirq-dev_]: https:\u002F\u002Fgroups.google.com\u002Fforum\u002F#!forum\u002Fcirq-dev\n\n### Contributions\n\n*   Have a feature request or bug report? [Open an issue on GitHub]!\n*   Want to develop Cirq code? Look at the [list of good first issues] to\n    tackle, read our [contribution guidelines], and then start opening\n    [pull requests]!\n\n[Open an issue on GitHub]: https:\u002F\u002Fgithub.com\u002Fquantumlib\u002FCirq\u002Fissues\u002Fnew\u002Fchoose\n[list of good first issues]: https:\u002F\u002Fgithub.com\u002Fquantumlib\u002FCirq\u002Fcontribute\n[contribution guidelines]: https:\u002F\u002Fgithub.com\u002Fquantumlib\u002Fcirq\u002Fblob\u002Fmain\u002FCONTRIBUTING.md\n[pull requests]: https:\u002F\u002Fhelp.github.com\u002Farticles\u002Fabout-pull-requests\n\n## Citing Cirq\u003Ca name=\"how-to-cite-cirq\">\u003C\u002Fa>\u003Ca name=\"how-to-cite\">\u003C\u002Fa>\n\nWhen publishing articles or otherwise writing about Cirq, please cite the Cirq\nversion you use – it will help others reproduce your results. We use Zenodo to\npreserve releases. The following links let you download the bibliographic\nrecord for the latest stable release of Cirq in some popular formats:\n\n\u003Cdiv align=\"center\">\n\n[![Download BibTeX bibliography record for latest Cirq\nrelease](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDownload%20record-e0e0e0.svg?style=flat-square&logo=LaTeX&label=BibTeX&labelColor=106f6e)](https:\u002F\u002Fcitation.doi.org\u002Fformat?doi=10.5281\u002Fzenodo.4062499&style=bibtex)&nbsp;&nbsp;\n[![Download CSL JSON bibliography record for latest Cirq\nrelease](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDownload%20record-e0e0e0.svg?style=flat-square&label=CSL&labelColor=2d98e0&logo=json)](https:\u002F\u002Fcitation.doi.org\u002Fmetadata?doi=10.5281\u002Fzenodo.4062499)\n\n\u003C\u002Fdiv>\n\nFor formatted citations and records in other formats, as well as records for\nall releases of Cirq past and present, please visit the [Cirq page on\nZenodo](https:\u002F\u002Fdoi.org\u002F10.5281\u002Fzenodo.4062499).\n\n## Contact\n\nFor any questions or concerns not addressed here, please email\nquantum-oss-maintainers@google.com.\n\n## Disclaimer\n\nThis is not an officially supported Google product. This project is not\neligible for the [Google Open Source Software Vulnerability Rewards\nProgram](https:\u002F\u002Fbughunters.google.com\u002Fopen-source-security).\n\nCopyright 2019 The Cirq Developers.\n\n\u003Cdiv align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fquantumai.google\">\n    \u003Cimg width=\"15%\" alt=\"Google Quantum AI\"\n         src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fquantumlib\u002FCirq\u002Frefs\u002Fheads\u002Fmain\u002Fdocs\u002Fimages\u002Fquantum-ai-vertical.svg\">\n  \u003C\u002Fa>\n\u003C\u002Fdiv>\n","Cirq 是一个用于创建、编辑和运行含噪声中等规模量子（NISQ）电路的 Python 框架。它提供了灵活的门定义和自定义门、参数化电路、电路转换与优化等功能，同时支持硬件设备建模和噪声建模。Cirq 还内置了多个量子电路模拟器，并能与高性能模拟器 qsim 无缝集成，确保在不同平台上的兼容性和高效性。此外，Cirq 与 NumPy 和 SciPy 等科学计算库有良好的互操作性，适用于需要对 NISQ 计算机进行编程和模拟的研究者及开发者。",2,"2026-06-11 03:27:32","top_topic"]