Quick start

To quickly install Qibo, open a terminal with python > 3.6 and type:

pip install qibo

This will install the basic primitives to start coding quantum applications.

Here an example of Quantum Fourier Transform (QFT) to test your installation:

from qibo.models import QFT

# Create a QFT circuit with 15 qubits
circuit = QFT(15)

# Simulate final state wavefunction default initial state is |00>
final_state = circuit()

Here an example of adding gates and measurements:

import numpy as np
from qibo.models import Circuit
from qibo import gates

c = Circuit(2)

# Add a measurement register on both qubits
c.add(gates.M(0, 1))

# Execute the circuit with the default initial state |00>.
result = c(nshots=100)