Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A high-performance, multi-threaded, quantum computing library for Pauli measurements.
quMeas is a high-performance multi-threaded library for computing expectation values of Pauli strings using randomized measurement techniques and cumulant expansion of Pauli operators (strings). It combines classical shadow tomography with statistical cumulant expansion to efficiently estimate Pauli expectation values. Designed with a multi-layered parallelization strategy and optimized C++ backend, quMeas scales efficiently on multi-core systems, making it ideal to incorporate in large-scale quantum algorithms such as VQE for molecular simulation, QAOA for combinatorial optimization, or any other quantum algorithm that requires expectation value of Pauli operators, particularly long Pauli strings.
quMeas can be installed from pip
pip install qumeas
Pre-built binary wheels for Linux and MacOS are also available at PyPI. Alternatively, to build the package and install from source,
git clone --recursive https://github.com/oimeitei/qumeas.git
python -m build --wheel
pip install dist/qumeas-*.whl
Check installation guide in the documentation for more low-level installation options.
Check out usage in the documentation as well the Python scripts in /examples
for more details
from qumeas import PauliContainer, RandomShadow, QCumulant
# Get measurement basis and outcomes(basis, bits) from general quantum computing
# packages. See documentation & examples for more details
myPauli = PauliContainer(Nqubit=N, #Qubits
pauli_list=plist, # list of Pauli strings
pauli_list_coeff=clist) # list of coeffs for plist
# Compute expectation with classical shadow tomography
myRandom = RandomShadow(PauliObj=myPauli)
expectation_random = myRandom.compute_expectation(basis, bits)
# Compute expectation with cumulant expansion
myCumu = QCumulant(PauliObj=myPauli,
measure_basis=basis,
measure_outcome_bits=bits)
myCumu.generate_partitions(num_threads=4)
expectation_cumulant = myCumu.compute_expectation_bits()
Documentation on Python API, libmeas
which expose C++ functions as well as installation instruction and usage are available at /docs
. To build the documentation locally, simply navigate to docs
and build using make html
or make latexpdf
.
Latest documentation is available online at quemb.readthedocs.io.
FAQs
A high-performance, multi-threaded, quantum computing library for Pauli measurements.
We found that qumeas demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.