quantools 0.0.1 copy "quantools: ^0.0.1" to clipboard
quantools: ^0.0.1 copied to clipboard

outdated

A package for doing quantum computation simulations in dart.

Quantools is a quantum computation simulation library, which allows you to draw simple quantum circuits and count the outputs.

Features #

Define simple quantum circuits, by using the following Gates: X, Y, Z, H, I, T, S, Tdg, Sdg, CX, CY, CZ, CH, Swap Run a simulation and count the outputs

Usage #

Define cuantum circuits

var qc = QuantumCircuit(3);
qc.x(0);
qc.h(1);
qc.cx(1, 2);
qc.swap(0, 2);

Run simulation:

  Simulator simulator = Simulator.transpile(qc);
  var result = simulator.run(shots: 1000);
0
likes
0
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

A package for doing quantum computation simulations in dart.

License

unknown (license)

Dependencies

flutter

More

Packages that depend on quantools