Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.
Important

IBM Quantum Platform is moving and this version will be sunset on July 1. To get started on the new platform, read the migration guide.

qiskit.qasm.Qasm

class Qasm(filename=None, data=None)

GitHub

OPENQASM circuit object.

Create an OPENQASM circuit object.

__init__

__init__(filename=None, data=None)

Create an OPENQASM circuit object.


Methods

__init__([filename, data])Create an OPENQASM circuit object.
generate_tokens()Returns a generator of the tokens.
parse()Parse the data.
return_filename()Return the filename.

generate_tokens

generate_tokens()

Returns a generator of the tokens.

parse

parse()

Parse the data.

return_filename

return_filename()

Return the filename.

Was this page helpful?
Report a bug or request content on GitHub.