Questions tagged [pyquil]
A Python library for quantum programming using Quil. http://docs.rigetti.com
16
questions
1
vote
2
answers
92
views
Can simulations of a quantum algorithm on a classical computer out-perform a classical algorithm?
Has it ever been shown that simulation of a quantum algorithm (e.g., using PyQuil or something?) on a classical computer has out-performed a purely classical algorithm? From what I can tell the ...
0
votes
0
answers
19
views
Randomized Benchmarking Circuit Generation in pyquil
The task at hand is to generate randomized benchmarking circuits using a native gate set (e.g. x, y, and iswap) in the easiest way possible.
Have been using qiskit for this purpose but it appears that ...
0
votes
1
answer
73
views
How to set different Backend Layouts in TKET and pyQuil (Quil compiler)?
In Qiskit it is possible to describe a CouplingMap on which a circuit get executed. This helps with testing different Layouts. There are many possibilities in Qiskit on how to do this. Firstly you can ...
1
vote
1
answer
31
views
Which method does pyQuil use to compile a Program?
I want to find out which method different compilers use to decompose a matrix into smaller gates. I went through the pyQuil code on github but could not find the answer there. Maybe i lost track of ...
1
vote
0
answers
33
views
Is there a method in pyQuil to create logical boolean gates
is there another way to represent a boolean gate. The straight forward way would be to define a gate my a matrix and then apply this gate to the circuit. What i mean by that? For Example an AND-Gate ...
2
votes
1
answer
73
views
Where can I find a comprehensive list of gate decompositions used by transpilers?
Does anyone know of a web site, paper etc. that has a list of "gate decompositions" e.g. the kind of decompositions that occur when the transpiler decomposes non-native gates to native gates....
5
votes
1
answer
427
views
Bloch sphere visualization using Cirq, ProjectQ, PyQuil
Is there a way to visualize the Bloch sphere using Cirq, ProjectQ, and/or PyQuil, as it is possible using plot_bloch_vector in Qiskit?
1
vote
1
answer
83
views
How to create a qubit in an arbitrary state in PyQuil
In PyQuil, a qubit is initialised as $|0\rangle$ by default. Suppose, I want to initialise a qubit in an arbitrary state, say $\frac{1}{\sqrt{3}}|0\rangle+\sqrt{\frac{2}{3}}|1\rangle$. How to do this ...
2
votes
1
answer
49
views
Pyquil run_and_measure gives the same output across all the trials: is this expected?
I tried to run the starter program demonstrated on this page:
http://docs.rigetti.com/en/stable/start.html#installing-the-qvm-and-compiler-on-linux-deb
With the following code:
...
0
votes
1
answer
556
views
VQE for Beginners : Using Tutorial and Cirq
I have been following this tutorial: https://dkopczyk.quantee.co.uk/vqe/
I am using Cirq to try to teach myself VQE, replicate their results, and also try to understand more about ansatz for ...
2
votes
0
answers
61
views
How to get the $T1$ specs for the Rigetti's quantum processor (Aspen 7)
I am trying to find the $T1$ coherence time for different qubits of Rigetti's quantum processor (Aspen 7) using Python. I tried using Specs() but encountered an ...
2
votes
0
answers
57
views
Error during Forest openfermion installation
I tried installing Forest openfermion by
pip install forestopenfermion and I got the following long error message (cut):
...
3
votes
1
answer
237
views
Newbie Project: Calculate a Mersenne Prime with Quantum Computing
I am new to the quantum world and wondering the bounds of which the technology is at the current state of the art: specifically in computing prime numbers.
I would like to, if possible, create a ...
6
votes
1
answer
898
views
How to create the oracle matrix in Grover's algorithm?
I'm trying to implement Grover's algorithm in pyQuil, but I'm having trouble creating the oracle matrix given the function $f$, where $f(x)=1$ if $x=w$ and $f(x)=0$ otherwise. In most of the ...
6
votes
2
answers
1k
views
Measuring the Hamiltonian in the VQE
I am trying to implement VQE in pyQuil and am dumbfounded by how to measure the expectation value of a general Hamiltonian on $\mathbb{C}^{2^n}$ i.e. determine $\langle\psi , H \psi\rangle$ on a ...
13
votes
2
answers
568
views
Hamiltonian simulation with complex coefficients
As part of a variational algorithm, I would like to construct a quantum circuit (ideally with pyQuil) that simulates a Hamiltonian of the form:
$H = 0.3 \cdot Z_3Z_4 + 0.12\cdot Z_1Z_3 + [...] +
- ...