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.

ParameterNamespace

class ParameterNamespace(parameters)

GitHub

Bases: types.SimpleNamespace

A namespace for program parameters with validation.

This class provides a namespace for program parameters with auto-completion and validation support.

ParameterNamespace constructor.

Parameters

parameters (Dict) – The program’s input parameters.


Methods

validate

ParameterNamespace.validate()

Validate program input values.

Note

This method only verifies that required parameters have values. It does not fail the validation if the namespace has extraneous parameters.

Raises

IBMQInputValueError – if validation fails

Return type

None


Attributes

metadata

Returns the parameter metadata

Return type

Dict

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