SpinSimulator

class SpinSimulator(config_dict=None, provider=None)[source]

A simulator to simulate general spin circuits.

This general spin simulator backend simulates spin circuits with gates that have generators described by spin Hamiltonians. It computes the statevector and unitary of a circuit and simulates measurements.

Initialize the backend from a configuration dictionary.

Parameters:

config_dict (Optional[Dict[str, Any]]) – Configuration dictionary of the backend. If None is given a default is assumed.

Attributes

SpinSimulator.options

Return the options for the backend

SpinSimulator.version

Methods

SpinSimulator.configuration()

Return the backend configuration.

SpinSimulator.draw(qc, **draw_options)

Modified circuit drawer to better display atomic mixture quantum circuits.

SpinSimulator.get_empty_circuit()

Convenience function to set up an empty circuit with the right QuantumRegisters.

SpinSimulator.name()

Return the backend name.

SpinSimulator.properties()

Return the backend properties.

SpinSimulator.provider()

Return the backend Provider.

SpinSimulator.run(circuits[, shots, spin, seed])

Run the simulator with a variable length of the individual spins.

SpinSimulator.set_options(**fields)

Set the options fields for the backend

SpinSimulator.status()

Return the backend status.