New answers tagged


If you are looking for a more complete implementation of a quantum variational algorithm in the context of Cirq, I would recommend looking at the second example in the OpenFermion-Cirq notebook found here. It uses a custom ansatz for hydrogen in a minimal basis, but makes a bit more explicit all the required pieces. Another good example, perhaps without ...


When using a simulator, it doesn't really matter what kind of qubit you refer to. You can even mix-and-match the types. The type of qubit only becomes relevant when you intend to run on a device, because devices have qubits at specific locations. For example, if you wanted to run on Bristlecone, you would limit yourself to GridQubit instances that actually ...


Cirq defines qubits to be LineQubits or GridQubits, since these are common constructions in NISQ computers. Qubits are commonly defined in lists (or generally iterables) for easy indexing in algorithms. In simulation using either has no impact on your algorithm. From Cirq's documentation GirdQubit is a qubit on a 2d square lattice.


Hamiltonian simulation is usually talking about simulating a quantum system on another quantum system. In particular, a digital simulation would involve implementing the simulation on a quantum computer using, e.g. the gate model. In this setting, there are several different strategies, i.e. algorithms, which one can use to perform the simulation. These ...

Top 50 recent answers are included