-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev
branch fixes
#396
dev
branch fixes
#396
Changes from 8 commits
39b55b5
7229dee
9410de8
791d6b7
5c5f9b6
5245715
98ec725
ac67ba2
3355439
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ orbs: | |
jobs: | ||
build: | ||
docker: | ||
- image: circleci/python:3.7.2 | ||
- image: circleci/python:3.7.12 | ||
- image: rigetti/quilc | ||
command: | ||
- -R | ||
|
@@ -30,7 +30,7 @@ jobs: | |
sudo apt install pandoc -qq | ||
python3 -m venv venv | ||
. venv/bin/activate | ||
pip install pip setuptools --upgrade | ||
pip install pip setuptools cmake --upgrade | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need a high version of |
||
pip install -r requirements.txt | ||
pip install --no-deps -r requirements_no_deps.txt | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,7 +200,7 @@ def calculate_classical_shadow(circuit_template, params, shadow_size, num_qubits | |
dev = qml.device("default.qubit", wires=num_qubits, shots=1) | ||
|
||
# simple circuit to prepare rho | ||
@qml.qnode(device=dev) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new decorator was taking a |
||
@qml.qnode(dev) | ||
def local_qubit_rotation_circuit(params, **kwargs): | ||
observables = kwargs.pop("observable") | ||
for w in dev.wires: | ||
|
@@ -355,7 +355,7 @@ def shadow_state_reconstruction(shadow): | |
|
||
# circuit to create a Bell state and measure it in | ||
# the bases specified by the 'observable' keyword argument. | ||
@qml.qnode(device=dev) | ||
@qml.qnode(dev) | ||
def bell_state_circuit(params, **kwargs): | ||
observables = kwargs.pop("observable") | ||
|
||
|
@@ -582,7 +582,7 @@ def shadow_bound(error, observables, failure_rate=0.01): | |
dev = qml.device("default.qubit", wires=num_qubits, shots=1) | ||
|
||
|
||
@qml.qnode(device=dev) | ||
@qml.qnode(dev) | ||
def circuit(params, **kwargs): | ||
observables = kwargs.pop("observable") | ||
for w in range(num_qubits): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a higher version of
gcc
to compile Lightning. This image pulls in GCC 10.