Qiskit Terra logo

Qiskit Terra

A solid foundation for quantum computing

About

Qiskit Terra provides the foundational roots for our software stack. Within Terra is a set of tools for composing quantum programs at the level of circuits and pulses, optimizing them for the constraints of a particular physical quantum processor, and managing the batched execution of experiments on remote-access backends. Terra is modularly constructed, simplifying the addition of extensions for circuit optimizations and backends. We welcome your contributions!

Stack

  • User Inputs (Circuits, and Scheules)

    Quantum Circuit, Pulse Schedule

  • Transpiler

    Optimization Passes, Third Party

  • Providers

    Qiskit Aer, IBM Q, Third Party

  • Visualization and Quantum Information Tools

    Histogram, State, Unitary, Entanglement, ...

Example

from qiskit import QuantumCircuit, Aer, execute

qc = QuantumCircuit(2, 2)

qc.h(0)
qc.cx(0, 1)
qc.measure([0, 1], [0, 1])

backend = Aer.get_backend('qasm_simulator')
job_sim = execute(qc, backend)
sim_result = job_sim.result()

print(sim_result.get_counts(qc))