q-optimize/c3

View on GitHub
Update dependencies (#243) #448
Nicolas Wittler authored 48b7917e
complete00:00:36
Your first build completed successfully!

Congratulations

Your first build completed successfully!

See the Results

1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.json.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
docker pull codeclimate/codeclimate-bandit:b866
b866: Pulling from codeclimate/codeclimate-bandit
a0e0ef996968: Pulling fs layer
00c69949e211: Pulling fs layer
124b11ffd9dc: Pulling fs layer
74d262bd6915: Pulling fs layer
963a4e0e1415: Pulling fs layer
ea041886215a: Pulling fs layer
3bbf7ff90c63: Pulling fs layer
963a4e0e1415: Waiting
ea041886215a: Waiting
3bbf7ff90c63: Waiting
74d262bd6915: Waiting
00c69949e211: Download complete
124b11ffd9dc: Verifying Checksum
124b11ffd9dc: Download complete
a0e0ef996968: Verifying Checksum
a0e0ef996968: Download complete
963a4e0e1415: Verifying Checksum
963a4e0e1415: Download complete
ea041886215a: Verifying Checksum
ea041886215a: Download complete
a0e0ef996968: Pull complete
3bbf7ff90c63: Verifying Checksum
3bbf7ff90c63: Download complete
00c69949e211: Pull complete
124b11ffd9dc: Pull complete
74d262bd6915: Verifying Checksum
74d262bd6915: Download complete
74d262bd6915: Pull complete
963a4e0e1415: Pull complete
ea041886215a: Pull complete
3bbf7ff90c63: Pull complete
Digest: sha256:b831294279e697e4402c0bd94153247577b1e1297055bac81a8e2922b4dedba5
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-bandit:b866
docker pull codeclimate/codeclimate-radon:b695
b695: Pulling from codeclimate/codeclimate-radon
e00d546a75ad: Pulling fs layer
21f0a0866768: Pulling fs layer
cd9d3946aa16: Pulling fs layer
2e56add6654f: Pulling fs layer
6c87f215a2be: Pulling fs layer
c2b31566ca3d: Pulling fs layer
2e56add6654f: Waiting
c2b31566ca3d: Waiting
6c87f215a2be: Waiting
21f0a0866768: Verifying Checksum
21f0a0866768: Download complete
e00d546a75ad: Verifying Checksum
e00d546a75ad: Download complete
cd9d3946aa16: Verifying Checksum
cd9d3946aa16: Download complete
6c87f215a2be: Download complete
e00d546a75ad: Pull complete
c2b31566ca3d: Verifying Checksum
c2b31566ca3d: Download complete
21f0a0866768: Pull complete
cd9d3946aa16: Pull complete
2e56add6654f: Verifying Checksum
2e56add6654f: Download complete
2e56add6654f: Pull complete
6c87f215a2be: Pull complete
c2b31566ca3d: Pull complete
Digest: sha256:dfeb7edc634b4e2f851f3c788f7c21bd8bae097d4c66af722c76a6ba51121f98
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-radon:b695
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-11-01T04:23:25.309086 #1]  INFO -- : Skipping file ./.github/prepare-nightly.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    print(f"Update init - replace version by {now_date}")
                                                       ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.311678 #1]  INFO -- : Skipping file ./c3/generator/generator.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 38
    devices: dict = None,
           ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.325123 #1]  INFO -- : Skipping file ./c3/generator/devices.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 15
    def dev_reg_deco(func: Callable) -> Callable:
                         ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.340524 #1]  INFO -- : Skipping file ./c3/qiskit/c3_backend_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 23
    def make_gate_str(instruction: dict, gate_name: str) -> str:
                                 ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.347167 #1]  INFO -- : Skipping file ./c3/main.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 83
    opt = optim_lib[optim_type](**cfg, pmap=exp.pmap)
                                     ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.355050 #1]  INFO -- : Skipping file ./c3/qiskit/c3_job.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 22
    def submit(self) -> None:
                     ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.365512 #1]  INFO -- : Skipping file ./c3/qiskit/c3_options.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    def to_dict(self) -> Dict[str, Any]:
                      ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.378509 #1]  INFO -- : Skipping file ./c3/qiskit/c3_backend.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 53
    def _default_options(cls) -> C3Options:
                              ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.390299 #1]  INFO -- : Skipping file ./c3/qiskit/c3_gates.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 15
    def __init__(self, label: Optional[str] = None):
                            ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.402010 #1]  INFO -- : Skipping file ./c3/experiment.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 59
    def __init__(self, pmap: ParameterMap = None, prop_method=None, sim_res=100e9):
                           ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.413439 #1]  INFO -- : Skipping file ./c3/libraries/tasks.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    self, name: str = " ", desc: str = " ", comment: str = " ", params: dict = None
              ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.415506 #1]  INFO -- : Skipping file ./c3/model.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 49
    self.subsystems: dict = dict()
                   ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.436738 #1]  INFO -- : Skipping file ./c3/libraries/algorithms.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 239
    x_init: np.ndarray,
          ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.453572 #1]  INFO -- : Skipping file ./c3/libraries/chip.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 50
    def get_transformed_hamiltonians(self, transform: tf.Tensor = None):
                                                    ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.472774 #1]  INFO -- : Skipping file ./c3/libraries/constants.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 97
    "C1": x90m @ x90p,
               ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.646551 #1]  INFO -- : Skipping file ./c3/libraries/fidelities.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 87
    propagators: dict, instructions: dict, index, dims, psi_0, n_eval=-1, proj=True
               ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.662504 #1]  INFO -- : Skipping file ./c3/libraries/propagation.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 105
    model: Model, gen: Generator, instr: Instruction, prop_res=1
         ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.670765 #1]  INFO -- : Skipping file ./c3/utils/log_reader.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    def show_table(log: Dict[str, Any], console: Console) -> None:
                      ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.677724 #1]  INFO -- : Skipping file ./c3/utils/tf_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 120
    def tf_matmul_left(dUs: tf.Tensor):
                          ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.686374 #1]  INFO -- : Skipping file ./c3/utils/qt_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 95
    raise Warning(f"Index {indx} is outside the Hilbert space dimensions {dims}. ")
                                                                                 ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.701576 #1]  INFO -- : Skipping file ./c3/utils/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    def log_setup(data_path: str = None, run_name: str = "run") -> str:
                           ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.708472 #1]  INFO -- : Skipping file ./c3/parametermap.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    self, instructions: List[Instruction] = [], generator=None, model=None
                      ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.722392 #1]  INFO -- : Skipping file ./c3/signal/pulse.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 36
    name: str,
        ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.728398 #1]  INFO -- : Skipping file ./c3/signal/gates.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 16
    def _from_dict_get_name_back_compat(cfg: dict, def_name: str) -> str:
                                           ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.741948 #1]  INFO -- : Skipping file ./c3/c3objs.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 45
    def __str__(self) -> str:
                      ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.748854 #1]  INFO -- : Skipping file ./c3/optimizers/sensitivity.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 53
    sampling: str,
            ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.757415 #1]  INFO -- : Skipping file ./c3/optimizers/optimalcontrol.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 58
    initial_point: str = "",
                 ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.762696 #1]  INFO -- : Skipping file ./c3/optimizers/calibration.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 46
    logger: List = None,
          ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.773494 #1]  INFO -- : Skipping file ./c3/optimizers/optimalcontrol_robust.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 36
    def __init__(self, noise_map, **kwargs) -> None:
                                            ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.791569 #1]  INFO -- : Skipping file ./c3/optimizers/optimizer.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 34
    pmap: ParameterMap,
        ^
SyntaxError: invalid syntax


I, [2024-11-01T04:23:25.794022 #1]  INFO -- : Skipping file ./c3/optimizers/modellearning.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 65
    logger: List = None,
          ^
SyntaxError: invalid syntax
7
bandit
bandit engine documentation
View output
[main]	INFO	profile include tests: None
[main]	INFO	profile exclude tests: None
[main]	INFO	cli include tests: None
[main]	INFO	cli exclude tests: None
[node_visitor]	INFO	Unable to find qualified name for module: setup.py
8
radon
radon engine documentation
View output
Running radon3...
9
sonar-python
sonar-python engine documentation
View output
INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: Invalid character encountered in file '/code/examples/data/calibration/closed_loop.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/examples/data/better_X90/goal.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/examples/data/better_X90/open_loop.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/examples/data/small_dataset.pkl' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/Simulated_Model_Learning_files/Simulated_Model_Learning_95_1.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/Simulated_Model_Learning_files/Simulated_Model_Learning_76_1.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/Simulated_Model_Learning_files/Simulated_Model_Learning_89_1.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/Simulated_Model_Learning_files/Simulated_Model_Learning_74_1.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/Simulated_Model_Learning_files/Simulated_Model_Learning_78_1.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/dyn_singleX.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/optim_X.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/ORBIT.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/c3_qiskit_files/c3_qiskit_17_1.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/c3_qiskit_files/c3_qiskit_13_0.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/dyn_5X.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/two_qubit_entangling_gate_files/two_qubit_entangling_gate_44_0.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/two_qubit_entangling_gate_files/two_qubit_entangling_gate_39_1.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/two_qubit_entangling_gate_files/two_qubit_entangling_gate_39_0.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/two_qubit_entangling_gate_files/two_qubit_entangling_gate_54_0.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/two_qubit_entangling_gate_files/two_qubit_entangling_gate_54_1.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/two_qubit_entangling_gate_files/two_qubit_entangling_gate_56_2.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/two_qubit_entangling_gate_files/two_qubit_entangling_gate_66_0.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/two_qubit_entangling_gate_files/two_qubit_entangling_gate_56_1.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/dyn_10X.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/optim_5X.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 123 files indexed
ERROR: Unable to parse file: /code/c3/generator/generator.py
ERROR: Parse error at line 43 column 20:

   38: : dict = None,
   39:         chains: dict = None,
   40:         resolution: float = 0.0,
   41:         callback: Callable = None,
   42:     ):
  -->          self.devices: Dict[str, Device] = {}
   44:         if devices:
   45:             self.devices = devices
   46:         self.chains: Dict[str

ERROR: Unable to parse file: /code/c3/qiskit/c3_backend.py
ERROR: Parse error at line 163 column 18:

  148: ._flip_labels = False
  149: 
  150:     def locate_measurements(self, instructions_list: List[Dict]) -> List[int]:
  151:         """Locate the indices of measurement operations in circuit
  152: 
  153:         Parameters
  154:         ----------
  155:         instructions_list : List[Dict]
  156:             Instructions List in Qasm style
  157: 
  158:         Returns
  159:         -------
  160:         List[int]
  161:             The indices where measurement operations occur
  162:         """
  -->          meas_index: List[int] = []
  164:         meas_index = [
  165:             index
  166:             for index, instruction in enumerate(instructions_list)
  167:             if instruction["name"] == "measure"
  168:         ]

ERROR: Unable to parse file: /code/c3/experiment.py
ERROR: Parse error at line 62 column 24:

   59: ParameterMap = None, prop_method=None, sim_res=100e9):
   60:         self.pmap = pmap
   61:         self.opt_gates = None
  -->          self.propagators: Dict[str, tf.Tensor] = {}
   63:         self.partial_propagators: Dict = {}
   64:         self.created_by = None
   65:         self.

ERROR: Unable to parse file: /code/c3/model.py
ERROR: Parse error at line 49 column 23:

   44: True
   45:         self.lindbladian = False
   46:         self.use_FR = True
   47:         self.dephasing_strength = 0.0
   48:         self.params = {}
  -->          self.subsystems: dict = dict()
   50:         self.couplings: Dict[str, Union[Drive, Coupling]] = {}
   51:         self.tasks:

ERROR: Unable to parse file: /code/c3/libraries/tasks.py
ERROR: Parse error at line 101 column 24:

   93: 
   94: 
   95:     def __init__(
   96:         self,
   97:         name: str = "conf_matrix",
   98:         desc: str = " ",
   99:         comment: str = " ",
  100:         params=None,
  -->          **confusion_rows,
  102:     ):
  103:         super().__init__(name=name, desc=desc, comment=comment, params=params)
  104:         for qubit

ERROR: Unable to parse file: /code/c3/libraries/chip.py
ERROR: Parse error at line 1221 column 14:

 1219: :
 1220:             hs.append(tf.constant(self.hamiltonian_func(a), dtype=tf.complex128))
  -->          self.h: tf.Tensor = tf.cast(sum(hs), tf.complex128)
 1222: 
 1223:     def get_Hamiltonian(
 1224:         self, signal: Union[Dict

ERROR: Unable to parse file: /code/c3/parametermap.py
ERROR: Parse error at line 27 column 25:

   22: 
   23: 
   24:     def __init__(
   25:         self, instructions: List[Instruction] = [], generator=None, model=None
   26:     ):
  -->          self.instructions: Dict[str, Instruction] = dict()
   28:         self.opt_map: List[List[Tuple[str]]] = list()

ERROR: Unable to parse file: /code/c3/signal/gates.py
ERROR: Parse error at line 84 column 19:

   79: = 0.0,
   80:     ):
   81:         self.set_name(name)
   82:         self.set_ideal(ideal)
   83:         self.targets = targets
  -->          self.params: dict = {}
   85:         if isinstance(params, dict):
   86:             self.params.update(params)
   87:         if t_start is not

ERROR: Unable to parse file: /code/c3/optimizers/sensitivity.py
ERROR: Parse error at line 90 column 22:

   84: 
   85:         self.sweep_map = sweep_map                         
   86:         self.pmap.opt_map = [
   87:             sweep_map[0]
   88:         ]                                               
   89:         self.sweep_bounds = sweep_bounds                       
  -->          self.sweep_end: List[
   91:             Dict[Any, Any]
   92:         ] = list()                                                                 
   93:         self.scaling = False                                                           
   94:         self.logname = "sensitivity.log"                                     
   95:         self.logdir_list

ERROR: Unable to parse file: /code/c3/optimizers/optimalcontrol.py
ERROR: Parse error at line 80 column 26:

   73: pmap,
   74:             algorithm=algorithm,
   75:             initial_point=initial_point,
   76:             store_unitaries=store_unitaries,
   77:             logger=logger,
   78:         )
   79:         self.set_fid_func(fid_func)
  -->          self.callback_fids: List[Callable] = []
   81:         if callback_fids:
   82:             self.set_callback_fids(callback_fids)
   83:         self.fid_subspace = fid_subspace
   84:         self.

ERROR: Unable to parse file: /code/c3/optimizers/optimizer.py
ERROR: Parse error at line 41 column 25:

   36: : Callable = None,
   37:         store_unitaries: bool = False,
   38:         logger: List = None,
   39:     ):
   40:         self.pmap = pmap
  -->          self.optim_status: Dict[str, Any] = dict()
   42:         self.gradients: Dict[str, np.ndarray] = {}
   43:         self.

ERROR: Unable to parse file: /code/c3/optimizers/modellearning.py
ERROR: Parse error at line 89 column 25:

   85: raise KeyError("C3:ERROR:Unknown sampling method.")
   86: 
   87:                 super().__init__(pmap=pmap,algorithm=algorithm,logger=logger)
   88: 
  -->          self.state_labels: Dict[str, List] = {"all": []}
   90:         for target, labels in state_labels.items():
   91:             self.

INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 1.328s
INFO: Final Memory: 9M/417M
INFO: ------------------------------------------------------------------------