You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add quilc_client property to QVMCompiler, improve timeout documentation (#1273)
* Add client property to QPUCompiler, improve timeout documentation
Add a client property to QPUCompiler so that it has better feature
parity with QVMCompiler. Generally we tell folks that
1. QVMCompiler and QPUCompiler should be largely interchangeable,
meaning that you can swap `qc = get_qc("Aspen-8", as_qvm=True)` with
`qc = get_qc("Aspen-8", as_qvm=False)`, and things should Just
Work. And
2. To set the timeout on a QVMCompiler one does
`qc.compiler.client.rpc_timeout = ...` but on a QPUCompiler
`qc.compiler.quilc_client.rpc_timeout = ...`.
This change brings 1 and 2 into alignment, so that the method for
configuring the compiler timeout is the same between the compiler
classes.
* fix type
* Add set_timeout method to {QVM,QPU}Compiler classes
* fix doc
* Fix: send timeout value in native_quil_to_binary call
* Fix: set_timeout docstring
* Remove QPUCompiler#client in favour of QVMCompiler#quilc_client
* Remove some docs
* Remove comment
* Add compiler_timeout option to get_qc()
* Note timeout units
* oops
* type int -> float
* update changelog
* remove duplicate line
Co-authored-by: kalzoo <[email protected]>
0 commit comments