Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pysimplex

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pysimplex

A fast Clifford circuit simulator

  • 1.5.0
  • PyPI
  • Socket score

Maintainers
2

pysimplex

This is a fast Clifford circuit simulator based on BH21.

Wheels are currently available for Linux, MacOS and Windows, for Python versions 3.8, 3.9 and 3.10.

Example usage:

from pysimplex import Simplex
S = Simplex(2) # a 2-qubit system
S.H(0).CX(0, 1)
b0 = S.MeasZ(0, coin=0) # 'coin' is an optional argument that fixes the result
assert b0 == 0 # without 'coin' it would be 0 or 1 with equal probability
b1 = S.MeasZ(1)
assert b0 == b1
assert not S.is_deterministic() # 'coin' is irrelevant here

The available operations are: X, Y, Z, H, S, Sdg, CX, CZ, MeasX, MeasY and MeasZ. The global phase (in units of pi/4, modulo 8) can be retrieved with the phase property.

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc