qiskit-community / qiskit-ionq

Qiskit provider for IonQ backends
https://qiskit-community.github.io/qiskit-ionq/
Apache License 2.0
41 stars 22 forks source link

Add SafeEncoder class to handle non-JSON-safe objects #155

Closed splch closed 7 months ago

splch commented 7 months ago

Summary

use a safeencoder to parse any object passed in the job

Details and comments

uses the string method if present otherwise calls repr

Cynocracy commented 7 months ago

LGTM with the changes