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
Return the options for the backend
Methods
Return the backend configuration.
SpinSimulator.draw
(qc, **draw_options)Modified circuit drawer to better display atomic mixture quantum circuits.
Convenience function to set up an empty circuit with the right QuantumRegisters.
Return the backend name.
Return the backend properties.
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
Return the backend status.