Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/altanai/cirq_quantum_programming
Workspace for my apps and trial experiments on quantum computing. M currently in the learning stage with quantum and will organize the repo better in future
https://github.com/altanai/cirq_quantum_programming
cirq quantum quantum-algorithms quantum-computing quantum-programming-language
Last synced: 10 days ago
JSON representation
Workspace for my apps and trial experiments on quantum computing. M currently in the learning stage with quantum and will organize the repo better in future
- Host: GitHub
- URL: https://github.com/altanai/cirq_quantum_programming
- Owner: altanai
- Created: 2020-01-02T07:39:37.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-19T12:11:06.000Z (over 4 years ago)
- Last Synced: 2024-10-25T13:43:39.256Z (about 2 months ago)
- Topics: cirq, quantum, quantum-algorithms, quantum-computing, quantum-programming-language
- Language: Python
- Homepage: https://programmingaltanai.wordpress.com/category/quantum-computing/
- Size: 20.5 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## CirQ Quantum programmming
CirQ is a python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Install
```bash
python3 -m pip install --upgrade pip
python3 -m pip install cirq
```dependencies
For witing to pdf
```bash
brew cask install mactex
```### Circuis
Can be either
- **Circuit**
Circuit is a collection of Moments. A Moment is a collection of Operations that all act during the same abstract time slice.- **schedule**
Schedules offer more control over quantum gates and circuits at the timing levelCirq has three main ways of defining qubits:
- cirq.NamedQubit: used to label qubits by an abstract name
- cirq.LineQubit: qubits labelled by number in a linear array
- cirq.GridQubit: qubits labelled by two numbers in a rectangular lattice.## Variational quantum algorithms
The variational method in quantum theory is a classical method for finding low energy states of a quantum system.
In classical variational method to a system of n qubits, an exponential number (in n) of complex numbers are necessary to generically represent the wave function of the system.
However with a quantum computer one can directly produce this state using a parameterized quantum circuit, and then by repeated measurements estimate the expectation value of the energy.