qrunch.quantum.backends.qunasys.qulacs_backend

Module with implementation of the Qulacs simulator.

Classes

QulacsBackend

Class for handling Qulacs local simulator.

class QulacsBackend

Bases: Backend

Class for handling Qulacs local simulator.

__init__(*, compiler: Compiler | None = None) None

Initialize a local Qulacs Backend.

The backend calculates the full state vector of the given circuit, and uses this to find the probabilities for each possible state in the Hilbert space.

Parameters:

compiler (Compiler | None) – Compiler for changing into universal gates. the compiler must implement the to_universal_gates method. Defaults to the PerGateCompiler compiler.

Return type:

None

property name: str

Name of the backend.

run(circuits: Circuit | Sequence[Circuit], shots: int | None) SimulatedJob

Run circuit on the backend.

Parameters:
  • circuits (Circuit | Sequence[Circuit]) – circuits to run on backend

  • shots (int | None) – number of shots

Return type:

SimulatedJob

supports_shots_equals_none() bool

Return whether the backend supports shots = None.

Qulacs Backend supports shots = None since it can perform full state vector simulations.

Return type:

bool