This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KERNEL=="iio:device[0-9]*", SUBSYSTEM=="iio", SUBSYSTEMS=="hid", DRIVERS=="hid-sensor-hub", GROUP="sensors", MODE="0660", \ | |
RUN+="/usr/bin/chgrp sensors /sys/bus/iio/devices/%k/scan_elements/in_accel_x_en", \ | |
RUN+="/usr/bin/chgrp sensors /sys/bus/iio/devices/%k/scan_elements/in_accel_y_en", \ | |
RUN+="/usr/bin/chgrp sensors /sys/bus/iio/devices/%k/scan_elements/in_accel_z_en", \ | |
RUN+="/usr/bin/chmod g+rw /sys/bus/iio/devices/%k/scan_elements/in_accel_x_en", \ | |
RUN+="/usr/bin/chmod g+rw /sys/bus/iio/devices/%k/scan_elements/in_accel_y_en", \ | |
RUN+="/usr/bin/chmod g+rw /sys/bus/iio/devices/%k/scan_elements/in_accel_z_en", \ | |
RUN+="/usr/bin/chgrp -R sensors /sys/bus/iio/devices/%k/buffer/", \ | |
RUN+="/usr/bin/chmod -R g+rw /sys/bus/iio/devices/%k/buffer/", \ | |
RUN+= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(0,) | |
6 100000 000100 000100 3 1 0 (0.7071067811865475+0.7071067811865475j) | |
000000 000000 100000 3 0 0 | |
000000 000100 000000 0 0 0 | |
100000 000100 100100 2 0 1 | |
000000 000000 000000 0 0 0 | |
000000 000000 000000 0 0 0 | |
(1,) | |
6 000000 000000 100010 3 1 1 (0.7071067811865475+0.7071067811865475j) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
from qiskit import QuantumCircuit, transpile | |
from qiskit.providers.aer import * | |
from qiskit.providers.aer.extensions import * | |
import qiskit | |
import random | |
import numpy as np | |
import sys | |
def E3LIN2_tuples(n, D, max_iterations=10000): |